Created
May 15, 2012 09:48
-
-
Save pechorin/2700458 to your computer and use it in GitHub Desktop.
io call target/sender
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kiriy := Object clone | |
kiriy name := "Kiriy" | |
kiriy kill := method( | |
("my name is " .. call target name) println | |
("and i was killed by " .. call sender name) println | |
) | |
killer := Object clone | |
killer name := "Dron" | |
killer do_kill := method(target, | |
target kill | |
) | |
killer do_kill(kiriy) # => my name is kiriy | |
# => and i was killed by Dron |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment