NeverCast, on 14 January 2013 - 04:16 PM, said:
#21
Posted 14 January 2013 - 04:18 PM
#23
Posted 14 January 2013 - 08:52 PM
Eric, on 14 January 2013 - 08:47 PM, said:
real_getmetatable = select(some_n, steal_stack(getmetatable))
Is there meant to be a code download on that page or something? Because last I checked steal_stack wasn't a function in Lua
#24
Posted 15 January 2013 - 11:38 AM
TheOriginalBIT, on 14 January 2013 - 08:52 PM, said:
Eric, on 14 January 2013 - 08:47 PM, said:
real_getmetatable = select(some_n, steal_stack(getmetatable))
Is there meant to be a code download on that page or something? Because last I checked steal_stack wasn't a function in Lua
Yep, the code is:
local steal_stack = loadstring("\27\76\117\97\81\0\1\4\4\4\8\0\0\0\0\0\0\0\0\0\7\0\0\0\0\1\2\250\4\0\0\0\65\62\0\0\101\0\0\0\28\64\0\0\94\0\0\0\1\0\0\0\0\0\0\0\0\4\0\0\0\3\0\0\0\4\0\0\0\5\0\0\0\7\0\0\0\0\0\0\0\0\0\0\0");
Unfortunately, that doesn't work in CC, presumably since luaJ uses a stackless VM...
#25
Posted 15 January 2013 - 11:51 AM
Eric, on 15 January 2013 - 11:38 AM, said:
local steal_stack = loadstring("\27\76\117\97\81\0\1\4\4\4\8\0\0\0\0\0\0\0\0\0\7\0\0\0\0\1\2\250\4\0\0\0\65\62\0\0\101\0\0\0\28\64\0\0\94\0\0\0\1\0\0\0\0\0\0\0\0\4\0\0\0\3\0\0\0\4\0\0\0\5\0\0\0\7\0\0\0\0\0\0\0\0\0\0\0");
Eric, on 15 January 2013 - 11:38 AM, said:
#26
Posted 15 January 2013 - 11:54 AM
#27
Posted 15 January 2013 - 11:56 AM
NeverCast, on 15 January 2013 - 11:54 AM, said:
#28
Posted 15 January 2013 - 11:59 AM
NeverCast, on 15 January 2013 - 11:54 AM, said:
> ms = string.dump(getmetatable)
> loaded_getmetatable = loadstring(ms)
> getmetatable({})
> loaded_getmetatable({})
string:-1: vm error: java.lang.NullPointerException
> string.dump(loaded_getmetatable) == string.dump(getmetatable)
true
#29
Posted 18 January 2013 - 11:36 AM
v2.2
- Added 4 new functions: isLower, isUpper, isAlpha, is AlphaNumeric
#30
Posted 18 January 2013 - 10:43 PM
#32
Posted 25 January 2013 - 12:48 AM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


This topic is locked








