[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lua-l
Subject:    Re: What is "TM" short for?
From:       Roberto Ierusalimschy <roberto () inf ! puc-rio ! br>
Date:       2020-10-22 13:05:53
Message-ID: 20201022130553.GA25561 () arraial ! inf ! puc-rio ! br
[Download RAW message or body]

> 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
same.

-- Roberto
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic