Guest User

Untitled

a guest
Apr 26th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. OBJECT Primitives::fixnum_add(STATE, Message& msg) {
  2. if(Fixnum* arg = try_as<Fixnum>(msg.get_argument(0))) {
  3. return as<Fixnum>(msg.recv)->(state, arg);
  4. }
  5. if(Bignum* arg = try_as<Bignum>(msg.get_argument(0))) {
  6. return as<Fixnum>(msg.recv)->(state, arg);
  7. }
  8. throw new Assertion("unable to resolve primitive fixnum_add types");
  9. }
Add Comment
Please, Sign In to add comment