lua-users home
lua-l archive

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



On Feb 12, 2006, at 14:05, Gavin Kistner wrote:

Which yet again points to the fact that 'super' type methods can't be written using first-class functions in a way that allows them to be used and re-shared. Pity.

Of course, they can... it just a question of how much you are willing to pay for it.

Hrm...unless I went crazy-stupid and used global variables and wrapper functions. Something like...

If you are so inclined, you can define your class fully as a closure. Check the PIL example under chapter 16.4 - Privacy:

http://www.lua.org/pil/16.4.html

Cheers

--
PA, Onnay Equitursay
http://alt.textdrive.com/