Odd behaviour of ResizableWhateverArray PMC's

Jonathan Leto jaleto at gmail.com
Fri Oct 9 17:38:53 UTC 2009


Howdy,

Funny y'all should ask about these things, since there is a TT patch
awaiting review for this exact thing.

https://trac.parrot.org/parrot/ticket/1089

kurahaupo++ has a patch there which initializes ResizeableIntegerArray's .


Duke



On Thu, Oct 8, 2009 at 11:50 PM, chromatic <chromatic at wgz.org> wrote:
> 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
> _______________________________________________
> http://lists.parrot.org/mailman/listinfo/parrot-dev
>



-- 

Jonathan Leto
jonathan at leto.net
http://leto.net


More information about the parrot-dev mailing list