Send an unknown method call: Difference between revisions

no edit summary
m (Put C# in correct position)
No edit summary
Line 126:
E.call(example, name, [])
}</lang>
 
=={{header|Forth}}==
{{works with|Forth}}
Works with any ANS Forth
 
Needs the FMS-SI (single inheritance) library code located here:
http://soton.mpeforth.com/flag/fms/index.html
<lang forth>include FMS-SI.f
include FMS-SILib.f
 
var x \ instantiate a class var object named x
 
: test
heap> string locals| s |
'!' s +: ':' s +: \ build the message "!:" into string s
42 x s @: evaluate \ retrieve the text from s and execute it
x p: ; \ lastly, send the p: message to x to print it
 
test \ => 42 ok
</lang>
 
=={{header|Go}}==