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
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:
> >
>
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
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