Skip to content

Instantly share code, notes, and snippets.

@manuel
Last active July 13, 2018 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save manuel/850307670e6e9b5429bc24f4ed6233ab to your computer and use it in GitHub Desktop.
Save manuel/850307670e6e9b5429bc24f4ed6233ab to your computer and use it in GitHub Desktop.
fun send(rcv, msg, args) {
  cls = rcv.isa
  if (cls.isa == STD_CLS)
    method = builtin_lookup(rcv, msg)
  else
    method = send(cls, "lookup", msg)
  method(rcv, args)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment