[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: 5.1
- From: Glenn Maynard <glenn@...>
- Date: Sun, 16 Oct 2005 23:26:37 -0400
On Sun, Oct 16, 2005 at 07:18:46PM +0200, Shmuel Zeigerman wrote:
> Pablo Bleyer Kocik wrote:
> > - I had to spend some time converting my old programs that used the
> >deprecated 'for i in table do ... end' syntax. At first I didn't realize
> >this was dropped from 5.1 (sorry, I haven't been following the list for a
> >long time).
> 'for i in table do ... end' was deprecated in Lua 5.0, not in 5.1.
> See in the Lua 5.0 manual (Incompatibilities with version 4.0):
> "The old construction for k,v in t, where t is a table, is deprecated
> (although it is still supported). Use for k,v in pairs(t) instead."
It doesn't help much to note deprecated features in a reference manual,
since few people read those front to back. People typically become
aware of deprecated language features through compiler warnings. Lua
doesn't have a mechanism for passing warnings to the application; maybe
it needs one.