PDA

View Full Version : Changes to existing LUA scripts



Rob H
January 20th, 2005, 02:46 PM
Now that we're on LUA 5 what are the changes that are required to existing scripts?

Most of them should be fairly obvious e.g. strfind -> string.find etc.

Anything else that might be tricky?

Just wondering if it's worth writing a script that transforms a LUA 4 script into LUA 5. While I'm still developing LDJ for LUA4 I don't really want to maintain two different versions - that way madness lies.

Ron
January 20th, 2005, 06:09 PM
The Girder functions are moving to 'gir.' too. Other than that I think most of the scripts should translate fine. But don't quote me on this.

danward79
January 20th, 2005, 10:45 PM
That would be awesome, I could then keep all my old dirties!