Talk:Variables: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Blocco
No edit summary
>Anaminus
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
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 <small style="font-size: 75%; line-height: 1.5">— [[User:Oysi93|Oysi93]] ([[User talk:Oysi93|talk]] • [[Special:Contributions/Oysi93|contribs]])</small> 20:31, 27 September 2010 (UTC)
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 <small style="font-size: 75%; line-height: 1.5">— [[User:Oysi93|Oysi93]] ([[User talk:Oysi93|talk]] • [[Special:Contributions/Oysi93|contribs]])</small> 20:31, 27 September 2010 (UTC)
:Why is _G even replaced with shared in this article? That shouldn't be correct.<div style="border-style:dotted; border-width:0px; border-top-width:1px; border-color:#888888; padding-bottom:-4px;"><sup>Posted by [[:User:Blocco|blocco]] ([[:User_talk:Blocco|talk]]) on Sep 27, 2010 (Monday) at 20:55 (UTC) [[:User talk:Blocco/sig#format|[Discuss format]]]</sup></div>
:Why is _G even replaced with shared in this article? That shouldn't be correct.<div style="border-style:dotted; border-width:0px; border-top-width:1px; border-color:#888888; padding-bottom:-4px;"><sup>Posted by [[:User:Blocco|blocco]] ([[:User_talk:Blocco|talk]]) on Sep 27, 2010 (Monday) at 20:55 (UTC) [[:User talk:Blocco/sig#format|[Discuss format]]]</sup></div>
::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? -- [[User:GoldenUrg|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. -- [[User:GoldenUrg|GoldenUrg]] 02:56, 30 September 2010 (UTC)
Finished the shared section. Please criticize my accuracy. [[User:Anaminus|--Anaminus]] 11:55, 30 September 2010 (UTC)

Latest revision as of 11:55, 30 September 2010

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)