Created
May 1, 2012 15:45
-
-
Save ederign/2568989 to your computer and use it in GitHub Desktop.
[Io] Homework Day One
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
HW1: Execute um programa Io de um arquivo | |
io nome_arquivo.io | |
HW2: Dado um parametro execute um slot | |
TestObject := Object clone do( | |
foo:= method("foooooooo" println) | |
bar:= method("baaaaarrr" println) | |
biz:= method("bizzzzzzz" println) | |
) | |
TestObject getSlot(System args at(1)) call | |
ignatowicz@ignatowicz-laptop:~/projects/seven-languages-in-seven-weeks (master) | |
$ io dynamic_slot.io foo | |
foooooooo | |
ignatowicz@ignatowicz-laptop:~/projects/seven-languages-in-seven-weeks (master) | |
$ io dynamic_slot.io bar | |
baaaaarrr | |
ignatowicz@ignatowicz-laptop:~/projects/seven-languages-in-seven-weeks (master) | |
$ io dynamic_slot.io biz | |
bizzzzzzz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment