Project

General

Profile

Bug #10

Erreur interne realocation d'un tableau de réel par via la commande Gosub

Added by Anonymous about 4 years ago. Updated about 4 years ago.

Status:
Rejected
Priority:
Normal
Target version:
Start date:
01/17/2020
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

Dim table#(1,2)

size = 10 : Gosub NewTable // <- Internal error at line 3, column 13 
Wait 100 : Cls : Pen 5
size = 5 : Gosub NewTable

Do
Loop : End

NewTable:
    {
        this.vars.table#_array.array = undefined;
        this.vars.table#_array.dim([this.vars.size],0);
    }
    For i=0 To size
        table#(i,0) = i
        Pen i : Print i : Wait 10
    Next i
Return
#1

Updated by Francois Lionet about 4 years ago

  • Status changed from New to Rejected
  • Target version set to 0.9.3

This is a problem in the hack, not in AOZ.

When transpiled, the # in the name of the variable is converted to "_" (as # are not allowed in Javascript). So the path to redim the array should be:

{
        this.vars.table__array.array = undefined;
        this.vars.table__array.dim([this.vars.size],0);
}

Also available in: Atom PDF