[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Incorrect args for unary minus
- From: "Wim Couwenberg" <wim.couwenberg@...>
- Date: Mon, 30 Jul 2007 16:42:34 +0200
> We considered this second argument as "an
> implementation detail" (because most functions in Lua simply ignore
> extra arguments), so we did not put it in the documentation.
And when it can go wrong, it will... :-) I came across this
implementation detail in my lgmp package. Initially "__unm" was
simply an alias of the "neg" method, but the second (optional)
argument to "neg" has a not so trivial meaning in lgmp... (It was
easily fixed of course.)
--
Wim