Advertisement
ice09

7l7w io day 1

Nov 7th, 2011
2,607
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
IO 0.39 KB | None | 0 0
  1. # Run an Io program from a file
  2.  
  3. # option 1:
  4. use the file as an argument of the io binary call: io.exe iofile.io
  5. # option 2:
  6. call doFile("/file/on/drive/io.io")
  7.  
  8. # Execute the code in a slot given its name
  9. Io> Proto := Object clone
  10. ==>  Proto_0x21b26c0:
  11.   type             = "Proto"
  12.  
  13. Io> Proto getSlot("mtd")
  14. ==> method(
  15.     write("method")
  16. )
  17.  
  18. Io> Proto perform("mtd")
  19. method==> nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement