Odd behaviour of ResizableWhateverArray PMC's

chromatic chromatic at wgz.org
Fri Oct 9 06:50:17 UTC 2009


On Thursday 08 October 2009 23:46:47 Christoph Otto wrote:

> I guess it kinda makes sense to initialize the complex types (STRING and
> PMC) and leave garbage in the primitive types (Integer and Float), but it
> strikes me a premature optimization and hardly ever DTRT.  Since it
> involves changing the smallest amount of code, I'd vote for making RFA and
> RIA initialize empty elements upon resizing.

I mostly agree, but remember that we may face the semi-predicate problem here.  
How can we tell the difference between an empty element and an element 
containing 0 or 0.0?

That's not an argument against initializing empty elements -- merely a 
suggestion for consideration.

-- c


More information about the parrot-dev mailing list