Skip to content

Instantly share code, notes, and snippets.

@pietro909
Created May 10, 2016 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pietro909/bc052e78db532883578b4af6e009858d to your computer and use it in GitHub Desktop.
Save pietro909/bc052e78db532883578b4af6e009858d to your computer and use it in GitHub Desktop.
SLISW - IO - 2.2
old_div := Number getSlot("/")
Number / := method(den, if( den == 0, 0, self old_div(den)))
2/0 # => 0
4/2 # => 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment