Re: [X10-users] Create an generics Array[ET] with null as initial value.

2011-04-05 Thread Yoav Zibin
ramming language > us...@lists.sourceforge.net> > > Date: 2011-04-05 20:27 > > Subject: Re: [X10-users] Create an generics Array[ET] with null as > > initial value. > > > > > > Hai Chuan Wang wrote on 04/05/2011 05:11:39 AM: > > > > > > I&#

Re: [X10-users] Create an generics Array[ET] with null as initial value.

2011-04-05 Thread Hai Chuan Wang
ove > To: Mailing list for users of the X10 programming language us...@lists.sourceforge.net> > Date: 2011-04-05 20:27 > Subject: Re: [X10-users] Create an generics Array[ET] with null as > initial value. > > > Hai Chuan Wang wrote on 04/05/2011 05:11:39 AM: > > >

Re: [X10-users] Create an generics Array[ET] with null as initial value.

2011-04-05 Thread David P Grove
Hai Chuan Wang wrote on 04/05/2011 05:11:39 AM: > > I'm writing a data structure with generics, and needs an internal array to > store data. > But the array should be initialized with null value at the beginning. > > public class Seq[ET] { > public var S:Array[ET](1){rail}; > public var s

[X10-users] Create an generics Array[ET] with null as initial value.

2011-04-05 Thread Hai Chuan Wang
Hi, I'm writing a data structure with generics, and needs an internal array to store data. But the array should be initialized with null value at the beginning. public class Seq[ET] { public var S:Array[ET](1){rail}; public var sz:int; public def this(s:int) { sz = s