Created
August 12, 2012 13:27
-
-
Save cloverrose/3331799 to your computer and use it in GitHub Desktop.
seven language "Io" p59
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
unless := method( | |
(call sender doMessage(call message argAt(0))) ifFalse( | |
call sender doMessage(call message argAt(1))) ifTrue( | |
call sender doMessage(call message argAt(2))) | |
) | |
westley := Object clone | |
westley trueLove := true | |
princessButtercup := Object clone | |
westley sendMessage := method(princessButtercup unless(trueLove, | |
("It is false" println), ("It is true" println))) | |
westley sendMessage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment