compiled lua scripts

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
Heimdall
Posts: 245
Joined: Thu Nov 10, 2005 1:29 am
Location: Netherlands
Contact:

compiled lua scripts

Post by Heimdall »

Hello all,

Just wondering if the PSP Lua Player supports compiled lua scripts. I like compiled scripts because I think they don't have syntax errors (if they compiled right) and because there is no need to parsing at runtime of the code.

If the player supports compiled scripts which should be the name of the initial script file? index.luac ?

Thanks
nevyn
Posts: 136
Joined: Sun Jul 31, 2005 5:05 pm
Location: Sweden
Contact:

Post by nevyn »

Why not try it?

Lua (the library, not luaplayer) looks at the code it is asked to load: if it's compiled, it runs it; if it's not, it compiles and runs it. My point being that yes, it works (in theory; I've never tried it). The index file is always called 'index.lua'.
Post Reply