Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OBJECT Primitives::fixnum_add(STATE, Message& msg) {
- if(Fixnum* arg = try_as<Fixnum>(msg.get_argument(0))) {
- return as<Fixnum>(msg.recv)->(state, arg);
- }
- if(Bignum* arg = try_as<Bignum>(msg.get_argument(0))) {
- return as<Fixnum>(msg.recv)->(state, arg);
- }
- throw new Assertion("unable to resolve primitive fixnum_add types");
- }
Add Comment
Please, Sign In to add comment