On Mon, Apr 7, 2008 at 8:29 PM, Ian Piumarta <[EMAIL PROTECTED]> wrote:
>
> > Array size_: _size value_: _value
> > [
> > self := self new: (SmallInteger value_: _size).
> > _oops := _value.
> > {
> > int i;
> > for (i= 0; i < (int)v__size; ++i)
> > ((oop *)self->v__oops)[i]= *((oop **)v__value)[i];
> > }.
> > ]
> >
> > What is that "_oops := _value." doing?
> >
>
> _oops is an instance variable of the receiver, which by line 2 is a new
> Arrray of size _size. The line in question makes the C array containing
> "..." be the contents of the Array object.
Sorry to sound clueless, but if the line in question makes the C array
containing "..." be the contents of the Array object, why is the
following "for" loop necessary?
Dan
_______________________________________________
fonc mailing list
[email protected]
http://vpri.org/mailman/listinfo/fonc