Code: Select all
*pointor = allocatememory(4096)
*photoX = procedureLambda(*pointor)
*movieY = procedureLambda(*pointor)
*stringZ = procedureLambda(*pointor)
When this allocated memory is full, there is a big problem cause I want to reallocate memory but the start pointor changed.
Code: Select all
*pointor2 = reallocatememory(8192)
If *pointor = *pointor2
Debug "I am very happy!"
Else
Debug "I loose all my pointors cause *PhotoX, *movieY and *StringZ become FALSE!"
EndIf
First time, declaring all my pointors like procedure declarations.
Code: Select all
*PointorsBegin
*photoX
*movieY
*stringZ
*PointorsEnd
Code: Select all
*NewArea = AllocateMemory(NewSize)
Shift.L = *NewArea - *OldArea
For i = @*PointorsBegin + 4 To @*PointeursEnd - 4 Step 4
PokeL(i, PeekL(i) + Shift)
Next

I suppose it's alphabetical...
Why does the compiler do it??? Useless...