sannybuilder/dev

Alloc does not work well with arrays

Opened this issue · 0 comments

x87 commented
{$CLEO}
// Alloc($DATA, 2596)

var 
    $DATA: array 100 of int
end

for 0@ = 0 to 99 
    $DATA[0@] = 0
end

$NEXT = 0 

in this example, depending on whether alloc is used or not, $NEXT either gets an index outside of array memory (expected) or as the item of the array (a bug).