Jump to content

Send an unknown method call: Difference between revisions

m
Added Sidef language
m (Added Sidef language)
Line 452:
println(s"Successfully completed without errors. [total ${scala.compat.Platform.currentTime - executionStart} ms]")
}</lang>
 
=={{header|Sidef}}==
<lang ruby>class Example {
method foo(x) {
42 + x;
}
}
 
var name = 'foo';
var obj = Example();
say obj.(name)(5); # prints: 47</lang>
 
=={{header|Smalltalk}}==
2,747

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.