|
| 05 Apr 2012 06:09 AM |
So I'm wondering, when roblox is going to update to Lua 5.2?
I'm waiting so I can update mah place. |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 05 Apr 2012 06:40 AM |
| What update from Lua 5.2 makes you want to update your place? |
|
|
| Report Abuse |
|
|
|
| 05 Apr 2012 09:00 AM |
| I used getfenv and setfenv in my scripts, in Lua 5.2 these libaries will be unexist-able anymore, so my scripts will break; in that case, I need to use _ENV. So that's why I'm waiting. |
|
|
| Report Abuse |
|
|
|
| 05 Apr 2012 09:01 AM |
| there's no equivalent for most set/getfenv common uses. |
|
|
| Report Abuse |
|
|
nightname
|
  |
| Joined: 10 Jun 2008 |
| Total Posts: 8960 |
|
|
| 05 Apr 2012 09:02 AM |
Eh? I've never found the need to use setfenv or getfenv, unless I am creating some sort of networked OS or something.
|
|
|
| Report Abuse |
|
|
|
| 05 Apr 2012 09:10 AM |
here's a good use eradicated by ENV:
function createBrick(stuff) end
function doThis() end
function initialiselibrary() getfenv(2)["createBrick"] = createBrick ... end
script 2:
_G.initialiselibrary()
createBrick() doThis() |
|
|
| Report Abuse |
|
|
Anaminus
|
  |
 |
| Joined: 29 Nov 2006 |
| Total Posts: 5945 |
|
|
| 05 Apr 2012 02:44 PM |
| Why wait when you could just check compatibility with _VERSION? |
|
|
| Report Abuse |
|
|
| |
|
Oysi
|
  |
| Joined: 06 Jul 2009 |
| Total Posts: 9058 |
|
| |
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
| |
|
|
| 05 Apr 2012 07:01 PM |
| We do something similar for coregui scripts so we can release them before features implemented in C++ that the scripts use are released. Thats why game.CoreGui.Version exists. |
|
|
| Report Abuse |
|
|
|
| 05 Apr 2012 07:12 PM |
| Wait.. will this Brake all the old scripts...??? |
|
|
| Report Abuse |
|
|
booing
|
  |
| Joined: 04 May 2009 |
| Total Posts: 6594 |
|
|
| 05 Apr 2012 07:19 PM |
^ Idiot All we have said is that getfenv and setfenv will be gone |
|
|
| Report Abuse |
|
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 05 Apr 2012 07:29 PM |
That happens to break one of my Inventory scripts... *dang*
Oh well. I hate pseudo stuff like that. -___-
On a happier note, no matter how much ROBLOX messes up games, I know I will be able to know before hand due to this forum + hackers in this forum.
|
|
|
| Report Abuse |
|
|
oxcool1
|
  |
| Joined: 05 Nov 2009 |
| Total Posts: 15444 |
|
| |
|
|
| 05 Jun 2012 01:13 PM |
All scripts with loadstring will be broken. :c
-APN Captain Ovalkyle325 |
|
|
| Report Abuse |
|
|