sannybuilder / dev

Sanny Builder Bug Tracker and Roadmap development
https://sannybuilder.com
49 stars 0 forks source link

Alloc does not work well with arrays #239

Open x87 opened 1 year ago

x87 commented 1 year ago
{$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).