Quantcast Lua 5.1 or 5.2? - WoWInterface
 
Thread Tools Display Modes
04-06-12, 07:58 PM   #1
Ketho
A Molten Giant
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 698
Lua 5.1 or 5.2?

I know /run, /script and addons are not yet available for use in order to print _VERSION, but does anyone know if Blizzard said anything yet about updating to Lua 5.2?

Lua 5.2 has been released since December 2011, and maybe it would help a lot for addon authors to anticipate on it if Blizzard were to update it in MoP

Last edited by Ketho : 04-06-12 at 08:18 PM.
 
04-06-12, 09:40 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,214
/dump _VERSION prints out "Lua 5.1"

They were probably too far into MoP development to change it by the time it was released.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

 
06-05-12, 10:20 PM   #3
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 326
How much would 5.2 affect how blizzards own UI functions?

Last edited by suicidalkatt : 06-06-12 at 10:19 AM.
 
06-06-12, 12:00 PM   #4
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 1,554
To mention what would be most impacted would be the SecureHandler system as it relies entirely on being able to create independent secure environments.

http://www.lua.org/manual/5.2/manual.html#8

8.1 – Changes in the Language
  • The concept of environment changed. Only Lua functions have environments. To set the environment of a Lua function, use the variable _ENV or the function load.

    C functions no longer have environments. Use an upvalue with a shared table if you need to keep shared state among several C functions. (You may use luaL_setfuncs to open a C library with all functions sharing a common upvalue.)

    To manipulate the "environment" of a userdata (which is now called user value), use the new functions lua_getuservalue and lua_setuservalue.



8.2 – Changes in the Libraries
  • Functions setfenv and getfenv were removed, because of the changes in environments.
__________________
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 06-06-12 at 12:05 PM.
 
06-06-12, 07:44 PM   #5
TSquared
Big Daddy!
Join Date: May 2008
Posts: 525
Mists of Pandaria will be running lua 5.1.

Currently there are no plans to move WoW's lua engine to 5.2.
 
06-06-12, 08:12 PM   #6
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,214
Thanks for the confirmation, TSquared.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

 
06-15-12, 10:00 PM   #7
Siku
A Fallenroot Satyr
 
Siku's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2007
Posts: 28
Not to be too offtopic but who is TSquared? I mean, other than knowing he's a blizzard employee.
 
06-15-12, 11:30 PM   #8
Phanx
No Life!
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,478
Maybe Blizzard employees could get bold blue names, the way moderators get bold orange names?
__________________
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
 
06-16-12, 05:45 PM   #9
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,492
They might want to stay somewhat anonymous, to avoid PM spam and whatnot.
 
06-16-12, 06:14 PM   #10
Talyrius
An Onyxian Warder
 
Talyrius's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 354
TSquared already has private messages turned off to avoid such nonsense.
 
 

WoWInterface » Legion Beta » MoP Beta archived threads » Lua 5.1 or 5.2?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off