| parrotcode: resizable size array for PMCs only | |
| Contents | PMCs |

classes/resizablepmcarray.pmc - resizable size array for PMCs only

This class, ResizablePMCArray, implements an array of resizable size, which stores PMCs, it puts things into Integer, Float, or String PMCs as appropriate
TODO currently this uses PerlString instead of String PMCs.

void *invoke(void *next)list object according to 2.1.
Built-in Functions.void set_integer_native(INTVAL size)size elements.PMC *get_pmc_keyed_int(INTVAL key)key.void set_pmc_keyed_int(INTVAL key, PMC *src)key to *src.void set_pmc_keyed(PMC *key, PMC *src)PMC *clone()INTVAL is_equal (PMC *value)== operation.
Compares two array to hold equal elements.void multiply_int(INTVAL value, PMC *dest) # L = [1] * 1000000
4 0 LOAD_CONST 1 (1)
3 BUILD_LIST 1
6 LOAD_CONST 2 (1000000)
9 BINARY_MULTIPLY
10 STORE_FAST 2 (L)

docs/pdds/pdd03_calling_conventions.pod.

Initial version 2004.06.11 by Matt Fowles Changed allocator to double size - MF 2004.06.15
|
|
|