Skip to content

Instantly share code, notes, and snippets.

@nrk
Created December 11, 2008 21:10
Show Gist options
  • Save nrk/34875 to your computer and use it in GitHub Desktop.
Save nrk/34875 to your computer and use it in GitHub Desktop.
The "forward" slot in the io language has the same purpose of "method_missing" in Ruby
Nrk := Object clone do (
forward := method("Method called: #{call message name}" interpolate println)
)
Nrk foo("bar") # prints "Method called: foo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment