Lua 5.1 rc3 now available

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Lua 5.1 rc3 now available

Luiz Henrique de Figueiredo
A new release candidate for Lua 5.1 is now available at
        http://www.lua.org/work/lua-5.1-rc3.tar.gz

Please take a look. We're getting really close to freezing Lua 5.1.
Thanks.
--lhf
Reply | Threaded
Open this post in threaded view
|

Re: Lua 5.1 rc3 now available

Kein-Hong Man
Hi all,

Luiz Henrique de Figueiredo wrote:
> A new release candidate for Lua 5.1 is now available at
> http://www.lua.org/work/lua-5.1-rc3.tar.gz
> Please take a look. We're getting really close to freezing Lua 5.1.

It looks like there is still no mention of table.foreach and
table.foreachi in the documentation. The last list message I found
on this said to the effect that the Lua team was considering their
status. I think table.foreach and table.foreachi should be
mentioned somewhere in the documentation, either as normal table
functions or as deprecated functions. Or perhaps I missed
something very obvious somewhere... ???

--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia

Reply | Threaded
Open this post in threaded view
|

Re: Lua 5.1 rc3 now available

mfmors
Where are you finding the 5.1 documentation?  When I look around on
www.lua.org, I can't find it.

Mark F. Morss
Principal Analyst, Market Risk
American Electic Power


                                                                           
             Kein-Hong Man                                                
             <[hidden email]                                            
             >                                                          To
             Sent by:                  Lua list                            
             lua-bounces@bazar         <[hidden email]>      
             2.conectiva.com.b                                          cc
             r                                                            
                                                                   Subject
                                       Re: Lua 5.1 rc3 now available      
             02/08/2006 10:15                                              
             AM                                                            
                                                                           
                                                                           
             Please respond to                                            
                 Lua list                                                  
             <[hidden email]                                            
               tiva.com.br>                                                
                                                                           
                                                                           




Hi all,

Luiz Henrique de Figueiredo wrote:
> A new release candidate for Lua 5.1 is now available at
>            http://www.lua.org/work/lua-5.1-rc3.tar.gz
> Please take a look. We're getting really close to freezing Lua 5.1.

It looks like there is still no mention of table.foreach and
table.foreachi in the documentation. The last list message I found
on this said to the effect that the Lua team was considering their
status. I think table.foreach and table.foreachi should be
mentioned somewhere in the documentation, either as normal table
functions or as deprecated functions. Or perhaps I missed
something very obvious somewhere... ???

--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia



Reply | Threaded
Open this post in threaded view
|

Re: Lua 5.1 rc3 now available

Kein-Hong Man
[hidden email] wrote:
> Where are you finding the 5.1 documentation?  When I look around on
> www.lua.org, I can't find it.

manual.html inside the rc3 release...

--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia

Reply | Threaded
Open this post in threaded view
|

Re: Lua 5.1 rc3 now available

Luiz Henrique de Figueiredo
> [hidden email] wrote:
> > Where are you finding the 5.1 documentation?  When I look around on
> > www.lua.org, I can't find it.
>
> manual.html inside the rc3 release...

Also now at http://www.lua.org/manual/5.1/ 

--lhf
Reply | Threaded
Open this post in threaded view
|

Re: Lua 5.1 rc3 now available

John Belmonte
In reply to this post by Luiz Henrique de Figueiredo
I should have noticed this earlier, but the Version field in lua.pc
should have the full Lua version (5.1.0) rather than the major version
(5.1).  According to the pkg-config manual, Version should be the most
specific version available.  Software may want to check if the installed
Lua library has a certain bug fix level, for example (assuming a 5.1.1
release):

  pkg-config --exists 'lua >= 5.1.1 lua < 5.2.0'


--John
Reply | Threaded
Open this post in threaded view
|

Re: Lua 5.1 rc3 now available

Roberto Ierusalimschy
In reply to this post by Kein-Hong Man
> I think table.foreach and table.foreachi should be mentioned somewhere
> in the documentation, either as normal table functions or as deprecated
> functions. Or perhaps I missed something very obvious somewhere... ???

You did not. We did :) Now it is in the documentation (as deprecated,
although they are still available in the code).

-- Roberto
Reply | Threaded
Open this post in threaded view
|

Re: Lua 5.1 rc3 now available

Mark Hamburg-4
on 2/10/06 12:00 PM, Roberto Ierusalimschy at [hidden email] wrote:

> You did not. We did :) Now it is in the documentation (as deprecated,
> although they are still available in the code).

I understand the motivation for deprecating them, but is there thought to
what the replacement is for:

    table.foreach( t, print )

It's a lot wordier to write:

    for k, v in pairs( t ) do print( k, v ) end

Mark

Reply | Threaded
Open this post in threaded view
|

Re: Lua 5.1 rc3 now available

D Burgess-4
>
> I understand the motivation for deprecating them, but is there thought to
> what the replacement is for:
>
>     table.foreach( t, print )
>
> It's a lot wordier to write:
>
>     for k, v in pairs( t ) do print( k, v ) end
>

Or compared to the lua 4 version

foreach(t, print)

Methinks the changes have not advanced the intuitive nature of Lua,
and there is a case for foreach being part of the "Basic Functions".

David B.