Respond to an unknown method call: Difference between revisions

m
(Added Io entry)
Line 443:
 
<lang io>Example := Object clone do(
foo := method(writeln("this is foo"))
bar := method(writeln("this is bar"))
forward := method(
writeln("tried to handle unknown method ",call message name)
if( call hasArgs,
writeln("it had arguments: ",call evalArgs)
)
)
)
)
)
 
Anonymous user