View Full Version : LUA 5.0 - when ?
AlCapone
April 30th, 2003, 05:23 AM
I hope Girder 4 will support/have LUA5
thnx.
Ron
April 30th, 2003, 07:45 AM
I don't think it will ever get Lua 5 since that would break compatibility with current scripts and plugins. There are no significant advantages to Lua 5 for Girder. Maybe coroutines but that is a problem waiting to bite me, so I'll stay away.
AlCapone
May 8th, 2003, 03:02 AM
I asked because LUA manual 4.0 (PDF) looks awful , it's nothing more that a bunch of poorly scanned and NOT OCR'ed pages.... makeing it unsearchable.
I also found some mathematical problems and can't get some number formatting to work no matter what I do.
....trying to format "5" into "nn" format -> make it a "05"
BeRnA
May 8th, 2003, 03:43 AM
RonB: You could make an option, and the user choose between Lua4 ou Lua5...
Mark F
May 8th, 2003, 06:00 AM
The LUA 4.0 manual is available in HTML (link (http://www.lua.org/manual/4.0)) and contains a table of contents, one huge page of information and a hperlinked index.
To change 5 to "05", use the format() command:
temp = 5
string = format("%02d",temp)
print(string)
The format command is in the string manipulation section of the 4.0 document.
LUA 5.0, as Ron said, would break some of the plugins as well as most scripts. Coroutines and threads would be a, ah, challenge. :D
LongShotBuddy
May 9th, 2003, 07:02 PM
http://www.lua.org/manual/
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.