Created
November 1, 2012 02:25
-
-
Save mbolt35/3991248 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// These produce the same Array *structure*, they are not | |
// strictly equivalent (===) | |
var oneWay:Array = new Array(1, 2, 3); | |
var anotherWay:Array = [ 1, 2, 3 ]; | |
// Each of these result with the same Vector.<int> | |
// *structure*, however they are not strictly | |
// equivalent (===). | |
var v1:Vector.<int> = new Vector.<int>(3); | |
v1[0] = 1; v1[1] = 2; v1[2] = 3; | |
var v2:Vector.<int> = new <int>[ 1, 2, 3 ]; | |
var v3:Vector.<int> = Vector.<int>([ 1, 2, 3 ]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment