otya128/osb

String Array

Opened this issue · 0 comments

DIM A$[100000]'=>using 400040 byte
FILL A$,""'=>Out of memory

DIM A$[10000]'=>using 40040 byte
FILL A$,""'=>using 2646016 byte

DIM A$[10000]'=>using 40040 byte
FOR I=0TO LEN(A$)-1A$[I]=""NEXT'=>using 2646016 byte

DIM A$[1]
PUSH A$[0],"A"'=>Out of memory(FREEMEM:8MB)

DIM A$[1]
INC A$[0],"A"'=>success

DIM A$[1]
DIM B$[1]
B$=""
A$[0]=B$[0]
INC B$[0],"A"'A$[0]="A"

DIM A$[1]
DIM B$[1]
A$[0]=B$[0]
INC B$[0],"A"'A$[0]=""