lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> A new snapshot of Lua 4.1 (work) is now available at
> http://www.tecgraf.puc-rio.br/lua/work/lua-4.1-work4.tar.gz
[snip]
> The manual has been partially updated is available at
> http://www.tecgraf.puc-rio.br/lua/work/refman-4.1-work4.pdf
> http://www.tecgraf.puc-rio.br/lua/work/refman-4.1-work4.ps.gz
> It does not mention co-routines yet but it does describe the new for and
> the new syntax for table constructors.

Great, I compiled it with my previous project files without major problem,
just these minor warnings (with maximum warning level):
-- Debug
F:\Languages\lua-4.1-work4\src\lfunc.c(32) : warning C4244: '=' : conversion
from 'short ' to 'unsigned char ', possible loss of data
F:\Languages\lua-4.1-work4\src\lfunc.c(43) : warning C4244: '=' : conversion
from 'short ' to 'unsigned char ', possible loss of data
F:\Languages\lua-4.1-work4\src\luac\ldumplib.c(17) : warning C4244: '=' :
conversion from 'int ' to 'char ', possible loss of data
F:\Languages\lua-4.1-work4\src\luac\print.c(178) : warning C4505:
'PrintLocal' : unreferenced local function has been removed
        F:\Languages\lua-4.1-work4\src\luac\print.c(57) : see declaration of
'PrintLocal'
-- Release
Sames +
F:\Languages\lua-4.1-work4\src\lib\liolib.c(580) : warning C4702:
unreachable code

As usual, the last one is due to a hack to avoid a warning in another system
:-)

I was happy to see my (modest) proposed change have been integrated, at
least at Lua code level:
-- Get current locale
print(setlocale(nil, "all"))
print(date("%B"))
print(date("%#c"))
print(date("%#x"))
-- Set locale to user one
print(setlocale("", "all"))
print(date("%B"))
print(date("%#c"))
print(date("%#x"))
-- Check current locale
print(setlocale(nil, "all"))

In previous version, the setlocale(nil, "all") failed, now it returns the
current locale setting. Perhaps you should mention it in the manual when you
update it.

Can anybody translate the work4 version of the manual from ps to html? It
would be smaller, easier to call, and to search/copy/update... I have found
some ps2html or ps2text tools, but nothing working well in Windows. Thank you.

Regards.

-- 
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
http://jove.prohosting.com/~philho/
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--

GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net