|
We thought that CreateInstance was a handy enough way to do this
so we didn’t re-invent the wheel. Given our current syntax for creating an
array requiring a sequence we’ve left the window open to add your proposed
syntax in the future but it’d be interesting to hear how cumbersome others
think the CreateInstance call is. From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Kristof Wagemans The question is: is there an alternative syntax to create an array
of a specific length. Now you have to go through a static method of
System.Array to create it. I wanted to know if you can create it directly and keep it looking
like System.Array[int]. Something like: System.Array[int](3). But this throws
an exception. From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of J. Merrill Did you leave some part of your
own question un-answered? CreateInstance does just what you said you
wanted to know how to do, doesn't it? You
can create an int array of length 3 with:
|
_______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
