Add new RK() helper and fix OP_ADD to use it (so it loads constants properly)

Fix OP_ADD code to use new LValue format

Support for __add metamethod

New Lua<->native function interface, simpler. Added type() to baselib.

Large overhaul - every LValue (and LBinaryChunk) now has a valid 'vm' property, so we know in which LVM to call it or its metamethods

Give LValue an add() method, to eventually respect metamethods

Change some decimal constants to hex for consistency

(0) -30 -10 -7 +7 +10 +30 tip

mercurial