[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: The call "tag" in 5.0-work0
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 11 Jul 2002 14:06:02 -0300
> > Sorry, just answered by own dumb question. You need to put underscores
> > before the name in 5.0 work 0.
> Hmm... is this to facilitate the use of tables as their own
> metatables? Or is that not allowed?
It is allowed, but the main motivation for the prefix `__' is to
facilitate finding where in your program you set/get/change metamethods.
"grep __index" will get much less noise than "grep index"...