DarkDragon wrote: Tue Oct 22, 2024 6:29 am
You can pass the same list as two arguments to a procedure.
It's clear.
In any case, CompareList() most certainly checks the pointer and will not compare the same list. Moreover, CompareList() shows that the lists are the same.
It doesn't throw an error
Code: Select all
Debug CompareList(list1() , list1())
I tried to check the previous data, but got nothing. Perhaps they have a different address.
Code: Select all
Define NewList list1()
AddElement(list1())
list1() = 255
byte = 32
ShowMemoryViewer(@list1() - byte, byte + 2)
Got the number
Code: Select all
Define NewList list1()
c=3 ; 1-16
For i = 1 To c
AddElement(list1())
list1() = 255
Next
byte = SizeOf(Integer) * c * 4 + 4
*x.Integer = @list1() - byte
Debug *x\i
ShowMemoryViewer(@list1() - byte - 2, byte + 4)