The method is unsafe and is just a direct wrapper for the specific implementation of native arrays
# Store an element in a native array.
# The method is unsafe and is just a direct wrapper for the specific implementation of native arrays
fun native_array_set(native_array: RuntimeVariable, index: Int, value: RuntimeVariable) is abstract
src/compiler/abstract_compiler.nit:1368,2--1370,100
redef fun native_array_set(nat, i, val)
do
var nclass = mmodule.native_array_class
var recv = "((struct instance_{nclass.c_name}*){nat})->values"
self.add("{recv}[{i}]={val};")
end
src/compiler/separate_compiler.nit:2226,2--2231,4
redef fun native_array_set(nat, i, val)
do
var recv = "((struct {nat.mcasttype.c_name}*){nat})->values"
self.add("{recv}[{i}]={val};")
end
src/compiler/global_compiler.nit:460,2--464,4