[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Metatables for numbers
- From: Petite Abeille <petite.abeille@...>
- Date: Fri, 27 Jun 2008 22:59:59 +0200
On Jun 27, 2008, at 10:37 PM, Greg Hill wrote:
I'm not quite sure how to use it. The following code snippet didn't
work for me.
Hmmm... yes... one cannot overwrite the primitive 'add' when both
operands are numeric:
http://www.lua.org/manual/5.1/manual.html#pdf-getmetatable