Talk:Variables

From Legacy Roblox Wiki
Jump to navigationJump to search

Erhm, that is actually incorrect... I know, globals are actually variables that are not local(upvalues), however _G is the place where all the global functions are stored, not in shared. I guess I will have to write that section different from what I had thought then. Btw, _G actually works. =P Oysi93 (talkcontribs) 20:31, 27 September 2010 (UTC)

Why is _G even replaced with shared in this article? That shouldn't be correct.
Posted by blocco (talk) on Sep 27, 2010 (Monday) at 20:55 (UTC) [Discuss format]
Because that is the supposedly the right way to do this, and because "_G" seems to stand for "global" which clearly conflicts with Lua terminology. Shared is a better name. I've been trying to find better terms to use on this page since I read it the first time. If you want to create a page on advanced usage and Lua internals, feel free, but the intent of this page is to be one of the first 10 new scripters will read. We don't need to go into great details. Do you really want to waste time trying to keep _G if devs are more interested in removing/disabling it? -- GoldenUrg 02:56, 30 September 2010 (UTC)
Last I checked, _G doesn't point to the table that contains the global functions anymore, but this page isn't even trying to talk about global functions. If "shared" does what it seems to, I highly recommend using it here. It is simpler for beginners to understand. -- GoldenUrg 02:56, 30 September 2010 (UTC)

Finished the shared section. Please criticize my accuracy. --Anaminus 11:55, 30 September 2010 (UTC)