Send an unknown method call: Difference between revisions

Content added Content deleted
(Added Io entry)
Line 220: Line 220:


For more information on this see [[Respond_to_an_unknown_method_call#Icon_and_Unicon|Respond to an unknown method call]].
For more information on this see [[Respond_to_an_unknown_method_call#Icon_and_Unicon|Respond to an unknown method call]].
=={{header|Io}}==
String literal "foo" may be replaced by any expression resulting in a string
<lang Io>Example := Object clone
Example foo := method(x, 42+x)

name := "foo"
Example clone perform(name,5) println // prints "47"</lang>

=={{header|J}}==
=={{header|J}}==