Changes between Version 22 and Version 23 of ArrayTasklist

Show
Ignore:
Timestamp:
02/01/10 22:41:25 (12 years ago)
Author:
kurahaupo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ArrayTasklist

    v22 v23  
    100100Refactor all the classes as mix-ins between two groups of classes: 
    101101 
    102 * one group of classes that know the type of each element (int, num, str, pmc, any), and 
    103 * another group of classes that compute memory addresses for indexed elements, perform resizing (or not), and report number of elements. 
     102 * one group of classes that know the type of each element (int, num, str, pmc, any), and 
     103 * another group of classes that compute memory addresses for indexed elements, perform resizing (or not), and report number of elements. 
    104104 
    105105(These latter would if necessary target the roles listed above, but a single compromise implementation would also work. -- kurahaupo) 
    106106 
    107107A general-purpose resizable array would need these attrs: 
    108 * element_size (corresponding to int8, int16, int32, int64, int128, float32, float64, float128, string, pmc & any) 
    109 * allocated_size 
    110 * initialized_size 
    111 * logical_size 
    112 * index_offset (used to make shift and unshift operate efficiently, not to allow arbitrary base indexing) 
     108 * element_size (corresponding to int8, int16, int32, int64, int128, float32, float64, float128, string, pmc & any) 
     109 * allocated_size 
     110 * initialized_size 
     111 * logical_size 
     112 * index_offset (used to make shift and unshift operate efficiently, not to allow arbitrary base indexing) 
    113113 
    114114A general-purpose fixed-sized array would only need the element size and number of elements.