On 5/20/14, 3:36 PM, Thiago L. wrote:
On 20/05/2014 18:24, Coroutines wrote:
On Tue, May 20, 2014 at 2:22 PM, Thiago L.
<fakedme@gmail.com> wrote:
So I wanna do a t:[var]() operator
(which's pretty much t:name() but it
takes a var instead of a name) and I have no idea of how to do
it...
a[var](a)
-- that guy :p
I want bytecode...
I would expect the closest you can get without
adding your own opcode is the bytecode for:
local temp = a;
temp[var](temp)
1 [1] GETGLOBAL 0 -1 ; a
2 [1] GETGLOBAL 1 -2 ; var
3 [1] GETTABLE 1 0 1
4 [1] MOVE 2 0
5 [1] CALL 1 2 1
Daniel.
|