lua-users home
lua-l archive

Re: Couple of technical questions

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


Hi,
> > (2) Why do metamethods have a double underscore prefix? That seems to
> imply
> > that the metatable will be filled with other, otherwise conflicting,
> > entries.
Another reason was that you can quickly locate "meta related" pieces of code
by scanning for double underscores. (More so if enforced by blunt
intstruments ;-)
Bye,
Wim

AltStyle によって変換されたページ (->オリジナル) /