lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


is that actually sufficient to make 

my_game:out("foo") 

reduce to 

__proto__.out(__proto__,"foo") ?

 

i don't use the ":" sugar much, but, i didn't think it was that sophisticated... shouldn't it just yield

__proto__.out( my_game ,"foo") ?



I think you could be correct, the lua snippet from Peng Zhicheng didn't work with the same "calling 'out' on bad self (game_class expected, got table)" error. I wonder if this is possible..

*account changed to prevent corporate sig spam