[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Inheriting from a userdata object
- From: Stephen Virgo <melonrock@...>
- Date: Mon, 18 Jun 2012 10:06:58 +0100
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