The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
POKE STRING and @string$
#2
LCD Wrote:Is this a bug or "feature"? If it is a feature, how to find out the adress of a string stored in Variable?
Strings are just pointers to memory blocks (chars), so:
Code:
DIM a$; PRINT PEEK(Uinteger, @a$) a$ = "Hello" : REM Assigning a new value *changes* it [u]dynamic[/u] address PRINT PEEK(Uinteger, @a$)
Notice a$ address pointer changes (reallocates) a$ on each assignation.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)