Jump to content

LUA 5.2


Roland
 Share

Recommended Posts

LUA 5.2 has been released. Will LE2 be updated to that version?

 

Lua 5.2

Lua 5.2 was released on 16 Dec 2011. The main features in Lua 5.2 are yieldable pcall and metamethods, new lexical scheme for globals, ephemeron tables, new library for bitwise operations, light C functions, emergency garbage collector, goto statement, and finalizers for tables. The current release is Lua 5.2.0, released on 16 Dec 2011.

 

LUA 5.2

Roland Strålberg
Website: https://rstralberg.com

Link to comment
Share on other sites

Better keep it for LE3D ?

Lot more people seems to use C++ with LE2, and that's better to concentrate on LE3D than putting time on adding las LUA version.

Perhaps i'm wrong if it really brings a lot to LE2 ?

I don't know if it would have any difference for LE2 as I'm not a LUA programmer YET. Its on my TODO list for the Christmas Holiday. I was just wondering if it will be updated or not. I guess not, and thats no problem for me. Maybe some LUA Guru could tell if 5.2 would bring any big new things into the mix.

Roland Strålberg
Website: https://rstralberg.com

Link to comment
Share on other sites

Coroutines can yield in many more places - In Lua 5.1, a coroutine (Lua thread) couldn't yield across a C call boundary, unless a modification like Coco was used. Lua 5.2-work3 introduces three new functions to the C API: lua_callk, lua_pcallk, and lua_yieldk.

 

That would be handy. Still can't figure out why I get that error telling me I can't do this in LE now when I didn't before when LE2 first came out.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...