[closed] loadstring or dofile

4 replies [Last post]
JayantV's picture
JayantV
User offline. Last seen 1 hour 38 min ago. Offline
Joined: 31 Oct 2009

Can we please have that, it opens up the possibilities for sooooo many cool things that we can do with lua...

cheers,

?:)

Replies

allen.holtzapfel
User offline. Last seen 13 weeks 3 days ago. Offline
Joined: 21 Feb 2011

hmm... apple prohibits compiling code at runtime.... so this could NOT be done on iOS (or rather, could not be done and be approved by apple)... android has no such restrictions (although I doubt it is implimented, if only to keep stuff consistant across platforms).

Having said that... I would love to see it done. (It is incredibly nice to save a Lua table in the format of a Lua table and simply open the file and load string when you want to restore it.... amoung other uses)

Satheesh's picture
Satheesh
User offline. Last seen 3 hours 51 min ago. Offline
Joined: 25 May 2011

+1 :)

guruk's picture
guruk
User offline. Last seen 2 days 15 hours ago. Offline
Joined: 9 Feb 2010

why does it have to be compiled while runtime???

Couldn't it be done, we as Devs just get that feature from Corona
and CORONA ... before creating our iOS/Android Code, does create
LUA Files that put that pieces together.

That would help us Devs to program even more effective and Apple
gets one piece of code :)

Logic??

chris

Danny's picture
Danny
User is online Online
Staff
Joined: 17 Aug 2011

Apple don't allow this for security reasons (apples opinion)

Viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.