Howdy,
This test:
.sub 'test_new_style_init'
$P0 = new ['FixedIntegerArray'], 10
$I0 = $P0
is($I0, 10, "New style init creates the correct # of elements")
.end
generates this error:
init_pmc() not implemented in class 'FixedIntegerArray'
current instr.: 'test_new_style_init' pc 133 (t/pmc/fixedintegerarray.t:39)
called from Sub 'main' pc 128 (t/pmc/fixedintegerarray.t:34)
Duke
On Tue, Mar 9, 2010 at 6:33 PM, Kevin Tew <[email protected]> wrote:
> Its in,
>
> I had to make realclean.
>
> Kevin
>
> Jonathan Leto wrote:
>>
>> Howdy,
>>
>> +1 to this patch
>>
>> I can write tests for it when it gets applied.
>>
>> Duke
>>
>>
>> On Tue, Mar 9, 2010 at 4:40 PM, Kevin Tew <[email protected]> wrote:
>>
>>>
>>> 14:02 < whiteknight> would like to add a new VTABLE_init_int, which would
>>> allow initialization from an integer
>>> 14:03 < whiteknight> Would allow preallocation of things like
>>> Fixed*Array,
>>> Integer, CallContext, etc
>>> 14:04 < whiteknight> Coke: you would have to create a throwaway Integer
>>> PMC
>>> to do the same thing
>>> 14:07 < Coke> NotFound: new $P1, ['Array'], 5
>>> 14:07 < allison> I am in favor or ways to avoid creating intermediate
>>> throw-away PMCs
>>> 14:07 < whiteknight> $P0 = new ['FixedIntegerArray'], 10
>>>
>>>
>>>
>>> _______________________________________________
>>> http://lists.parrot.org/mailman/listinfo/parrot-dev
>>>
>>>
>>>
>>
>>
>>
>>
>
>
--
Jonathan "Duke" Leto
[email protected]
http://leto.net
_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev