[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Deprecated calls
- From: Philippe Lhoste <PhiLho@...>
- Date: Sun, 07 Feb 2010 17:37:28 +0100
On 07/02/2010 11:45, Attila wrote:
Functions table.foreach and table.foreachi are deprecated. You can use a
for loop with pairs or ipairs instead.
Since table.getn/maxn does (now rather did) the same job, they have been
also deprecated.
Deprecated means: don't use them in new code. And: it might disappear in
a future version.
In Java API, you will find lot of methods that have been deprecated for
years, but are still there to let run .jar files made for Java 1.1...
Perhaps deprecated functions in Lua will disappear in next major version.
(but strange, math.mod disappeared, and
just fmod and modf are there...)
If I am not mistaken, math.mod does the same thing than % but fmod and
modf do slightly different things (eg. with negative numbers).
--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --