The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall

Difference between revisions of "Talk:Dynamic arrays"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
m
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
= Apparently incorrect information with relation to Dynamic Array .function options =  
 
= Apparently incorrect information with relation to Dynamic Array .function options =  
  
[http://udn.epicgames.com/Three/UnrealScriptReference.html#Dynamic%20Arrays Dynamic Arrays] so well, this page is missing .sort(delegate), also the .replace() is actually available in UE3? I cant say Ive seen it used but I'll assume its limited to the defprops --[[User:00zX|00zX]] 20:48, 20 April 2010 (UTC)
+
[http://udn.epicgames.com/Three/UnrealScriptReference.html#Dynamic%20Arrays Dynamic Arrays] so well, this page is missing .sort(delegate), also the .replace() is actually available in UE3? I cant say Ive seen it used but I'll assume its limited to the defprops  
 +
 
 +
--[[User:00zX|00zX]] 20:48, 20 April 2010 (UTC)
 +
 
  
 
[[User:00zX|00zX]] , I also don't believe .replace is available any longer, and I also believe .Empty no longer works.  Instead it should probably be changed to "ArrayName.Length=0;"  I believe that will actually empty the array.  It looks to me like someone just updated the UE2 article and didn't double check the info.
 
[[User:00zX|00zX]] , I also don't believe .replace is available any longer, and I also believe .Empty no longer works.  Instead it should probably be changed to "ArrayName.Length=0;"  I believe that will actually empty the array.  It looks to me like someone just updated the UE2 article and didn't double check the info.
 
--[[User:Krillin6|Krillin6]] 22:58, 15 May 2012 (UTC)
 
--[[User:Krillin6|Krillin6]] 22:58, 15 May 2012 (UTC)
 +
 +
:Don't mix up the code and defprops features. Empty and Replace modify the array in default properties, they aren't recognized in code. The section about Length now contains information twice, btw.: "If used on the left side of the simple assignment operator, this syntax can also be used to add or remove elements to/from the array. Like all operations that add elements to the array, this will initialize the new elements with the null value of the array's inner type." I agree that it could be a bit more specific, but now the bits of information around that part seem a little redundant. —[[User:Wormbo|Wormbo]] 04:55, 16 May 2012 (UTC)

Latest revision as of 21:58, 15 May 2012

Apparently incorrect information with relation to Dynamic Array .function options[edit]

Dynamic Arrays so well, this page is missing .sort(delegate), also the .replace() is actually available in UE3? I cant say Ive seen it used but I'll assume its limited to the defprops

--00zX 20:48, 20 April 2010 (UTC)


00zX , I also don't believe .replace is available any longer, and I also believe .Empty no longer works. Instead it should probably be changed to "ArrayName.Length=0;" I believe that will actually empty the array. It looks to me like someone just updated the UE2 article and didn't double check the info. --Krillin6 22:58, 15 May 2012 (UTC)

Don't mix up the code and defprops features. Empty and Replace modify the array in default properties, they aren't recognized in code. The section about Length now contains information twice, btw.: "If used on the left side of the simple assignment operator, this syntax can also be used to add or remove elements to/from the array. Like all operations that add elements to the array, this will initialize the new elements with the null value of the array's inner type." I agree that it could be a bit more specific, but now the bits of information around that part seem a little redundant. —Wormbo 04:55, 16 May 2012 (UTC)