Closed Thraka closed 4 years ago
Hi. In your example, the variable testString$
is a string pointer. It is barely an integer that holds the address of the actual string. Thus @testString$
will not give you the address of the string but the address of the pointer, that is a constant integer. To get the address of the string, try DEEK(@testString$)
or better and faster CAST(@testString$)
Indeed! Thanks!
When I reassign a string variable to a new location with
let testString$ = testString$ + 1
the string pointer is correct and prints one less character, but the@testString$
operator continues to report the same memory address. I'm assuming that this happens because the string memory was allocated during the compile and then any@
was replaced with the memory position. How would you work around this?