Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Run an Io program from a file
- # option 1:
- use the file as an argument of the io binary call: io.exe iofile.io
- # option 2:
- call doFile("/file/on/drive/io.io")
- # Execute the code in a slot given its name
- Io> Proto := Object clone
- ==> Proto_0x21b26c0:
- type = "Proto"
- Io> Proto getSlot("mtd")
- ==> method(
- write("method")
- )
- Io> Proto perform("mtd")
- method==> nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement