[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: What is "TM" short for?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 22 Oct 2020 10:05:53 -0300
> What is "TM"?
> If "TM" is short for "Tag method", then a question raises:
> Are "Tag method" and "Metamethod" the same?
Yes, TM is short for tag method. Tag methods were the ancestors of
metamethods, used before Lua 5.0 (?). When we changed the mechanism,
we did not correct every single name or comment in the Lua source that
mentioned tag methods. For the purpose of reading the code, they are the