> Don't ask me why _value is being reused instead of the
> freshly-allocated _oops.  It would make more sense to me to omit
> "_oops := _value", and save 1 line out of the 10,000 quota. ;)


Yeah, that looks like an "oops" (sorry, I couldn't resist). First, new:makes
_oops point to a freshly-allocated chunk of memory,

Array new: capacity
[
    self := super new.
    size := capacity.
    _oops := self _palloc: size
]

then we make it point elsewhere, creating unnecessary work for the GC.

Cheers,
Alex



>
> --
> Michael FIG <[EMAIL PROTECTED]> //\
>   http://michael.fig.org/    \//
>
> _______________________________________________
> fonc mailing list
> [email protected]
> http://vpri.org/mailman/listinfo/fonc
>
_______________________________________________
fonc mailing list
[email protected]
http://vpri.org/mailman/listinfo/fonc

Reply via email to