[fpc-pascal] AnsiString address changed
    Hairy Pixels 
    genericptr at gmail.com
       
    Mon Mar 18 09:34:25 CET 2024
    
    
  
> On Mar 18, 2024, at 3:27 PM, Hairy Pixels <genericptr at gmail.com> wrote:
> 
> Oh, it's a pointer to a pointer? I guess that explains how it can resize itself and not invalidate shared references, if those are even possible with AnsiString.
Wait, that's totally wrong. :) @s is the address of the local variable of course. I didn't think before I did that. I just wanted the address of the AnsiString.
That still doesn't explain how they resize though. There must be not be more than 1 reference to any AnsiString at a time.
Regards,
Ryan Joseph
    
    
More information about the fpc-pascal
mailing list