Value math and bitwise operations

Value objects supports using math operators to do calculations.
The result of an operation is a new Value.

Warning

Math operations on C Values are quite slow. You should use them with caution.

Example

local c = require "c" -- define a C string local str = c.string("Hello LuaRT !") -- advance the string pointer to 1 byte at each iteration until the last '\0' for i=0,#str-1 do print(str+i) end