lua-users home
lua-l archive

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


  function game_wrapper_mt:__index(key)
    return self.__proto__[key]
  end

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") ?