Skip to content

Instantly share code, notes, and snippets.

@cloverrose
Created August 12, 2012 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cloverrose/3331799 to your computer and use it in GitHub Desktop.
Save cloverrose/3331799 to your computer and use it in GitHub Desktop.
seven language "Io" p59
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