parrotcode: resizable array for PMCs only | |
Contents | PMCs |
classes/resizablepmcarray.pmc - resizable array for PMCs only
This class, ResizablePMCArray, implements an resizable array, which stores PMCs. It puts things into Integer, Float, or String PMCs as appropriate.
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)
void push_pmc (PMC *value)
*value
to the end of the array.void push_integer(INTVAL value)
void push_string(INTVAL value)
*value
to the end of the array.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/pdd17_basic_types.pod.
Initial version - Matt Fowles 2004-06-11 Changed allocator to double size - Matt Fowles 2004-06-15
|