Am Dienstag, 8. August 2006 20:53 schrieb Will Coleda:

> There is a lot of defensive code around the splice vtable list_splice
> () function that prevents using it across multiple types of PMCs.
>
> This should be removed, and we should be able to splice any two array
> types together. If necessary, throw an exception when trying to
> splice a fixed-size array.

The list_splice is an optimized implementation for Array (or any list based 
array). If you need a more general solution you can just implement the splice 
vtable function in the TclList PMC (or prefered in the RPA.pmc, where it's 
missing).

BTW:

pmclass TclList extends ResizablePMCArray need_ext does array dynpmc group 
tcl_group hll Tcl maps Array {

doesn't make much sense:

- extends ResizablePMCArray means, that it is inheriting from that (C-wise)
- maps Array means, that if, Parrot should create an array type, which is 
HLL-dependent, it should use C<Array>.

Array is in internals list-based and not compatible with RPA. These different 
array types don't work together at all.

leo

Reply via email to