Talk:Datatype Constants: Difference between revisions
imported>Heeheehee m Yeah, oops. |
imported>PhilmASTErpLus Call by value or reference? |
||
Line 4: | Line 4: | ||
Yeah, uh, finger slipped. Oops. (Undone now, don't worry about it.) --[[User:Heeheehee|Heeheehee]] 12:09, 22 June 2010 (UTC) | Yeah, uh, finger slipped. Oops. (Undone now, don't worry about it.) --[[User:Heeheehee|Heeheehee]] 12:09, 22 June 2010 (UTC) | ||
== Call by value or call by reference? == | |||
I actually wrote a simple script to see how it works. Apparently all the primitive data types are called by value when passed to a function, whereas maps and records are called by reference (with smart garbage collection!). I presume this is the same for substitution(<code>=</code>), and that buffers are called by reference, though I haven't tried either. Could someone high up there please verify this information before I add it? --[[User:PhilmASTErpLus|PhilmASTErpLus]] 07:14, 23 June 2010 (UTC) |
Revision as of 07:14, 23 June 2010
Yes, this page should be renamed & such. It's another artifact of the way things were when I started working on the wiki, that unfortunately became a "hub" of sorts without being properly changed. However, since HUNDREDS of pages link here, we really need to be a bit more careful before moving this page. It should probably be done by a mod (to avoid automatic redirect creation) AFTER various prerequisites are taken care of. --StDoodle (#1059825) 04:29, 21 June 2010 (UTC)
- Thanks for clarification, and sorry about not discussing it first. --PhilmASTErpLus
Yeah, uh, finger slipped. Oops. (Undone now, don't worry about it.) --Heeheehee 12:09, 22 June 2010 (UTC)
Call by value or call by reference?
I actually wrote a simple script to see how it works. Apparently all the primitive data types are called by value when passed to a function, whereas maps and records are called by reference (with smart garbage collection!). I presume this is the same for substitution(=
), and that buffers are called by reference, though I haven't tried either. Could someone high up there please verify this information before I add it? --PhilmASTErpLus 07:14, 23 June 2010 (UTC)