namespace factor
{
-inline static cell array_nth(array *array, cell slot)
+
+inline cell array_nth(array *array, cell slot)
{
#ifdef FACTOR_DEBUG
assert(slot < array_capacity(array));
return array->data()[slot];
}
-inline static void set_array_nth(array *array, cell slot, cell value)
+inline void factorvm::set_array_nth(array *array, cell slot, cell value)
{
#ifdef FACTOR_DEBUG
assert(slot < array_capacity(array));
write_barrier(array);
}
+inline void set_array_nth(array *array, cell slot, cell value)
+{
+ return vm->set_array_nth(array,slot,value);
+}
+
array *allot_array(cell capacity, cell fill);
cell allot_array_1(cell obj);
template <typename T> T *allot_array_internal(cell capacity);
template <typename T> bool reallot_array_in_place_p(T *array, cell capacity);
template <typename TYPE> TYPE *reallot_array(TYPE *array_, cell capacity);
- // next method here:
//debug
void print_chars(string* str);
cell allot_array_2(cell v1_, cell v2_);
cell allot_array_4(cell v1_, cell v2_, cell v3_, cell v4_);
inline void vmprim_resize_array();
+ inline void set_array_nth(array *array, cell slot, cell value);
+ // next method here:
//strings
cell string_nth(string* str, cell index);