a = b – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(b:Anything ?)
Line 9: Line 9:
Note that array1=array2; array2=[1,2,3]; makes array1=[1,2,3] as well since it's more like a "pointer", not a copy of. array1=+array2 *is* a copy. Confused? :) --[[User:Doolittle|Doolittle]] 18:44, 8 July 2007 (CEST)
Note that array1=array2; array2=[1,2,3]; makes array1=[1,2,3] as well since it's more like a "pointer", not a copy of. array1=+array2 *is* a copy. Confused? :) --[[User:Doolittle|Doolittle]] 18:44, 8 July 2007 (CEST)
:Array operations are actually covered in the [[Array#Array_references|Array]] article. --[[User:Kronzky|Kronzky]] 22:54, 8 July 2007 (CEST)
:Array operations are actually covered in the [[Array#Array_references|Array]] article. --[[User:Kronzky|Kronzky]] 22:54, 8 July 2007 (CEST)
== b:[[ Anything]] ? ==
If '''b''' is [[Anything]] it could also be [[Nothing]], which in turn cannot be assigned to a variable.
--[[User:Alef|alef]] 11:46, 19 June 2008 (CEST)

Revision as of 10:46, 19 June 2008

I thought "Equals a to b" is clearer, as it shows that it is an active process, as "a equals b" sounds more like a comparison. But I'm neither a native speaker nor is this command that unclear ;) --raedor 17:51, 16 December 2006 (CET)

How about this one: Assigns content of b to variable a.. That should be pretty obvious to anybody, what it means. --Kronzky 18:08, 16 December 2006 (CET)
I think planck confused a = b and a == b. I agree with Kronzky, the new definition is much more clearer. --Sniperwolf572 18:16, 16 December 2006 (CET)
I can live with that one. :) --raedor 19:27, 16 December 2006 (CET)
No, Planck didn't confuse this with a == b, I was just at a loss as to where this command comes from as it isn't really in the comref. Anyway the latest definition is fine. Planck 22:43, 16 December 2006 (CET)

Note that array1=array2; array2=[1,2,3]; makes array1=[1,2,3] as well since it's more like a "pointer", not a copy of. array1=+array2 *is* a copy. Confused? :) --Doolittle 18:44, 8 July 2007 (CEST)

Array operations are actually covered in the Array article. --Kronzky 22:54, 8 July 2007 (CEST)

b:Anything ?

If b is Anything it could also be Nothing, which in turn cannot be assigned to a variable. --alef 11:46, 19 June 2008 (CEST)