[fpc-pascal] AnsiString

2011-01-25 Thread Luis Fernando Del Aguila Mejía
The documentation (http://www.freepascal.org/docs-html/prog/progsu146.html#x189-1990008.2.7) says: -8 Longint current string with size. -4 Longint with reference count. But, when I want access to that structure, I have to do it backwards. -8 Longint with reference count. -4 Longint

Re: [fpc-pascal] AnsiString

2011-01-25 Thread David Emerson
Luis Fernando Del Aguila Mejía wrote: The documentation (http://www.freepascal.org/docs-html/prog/progsu146.html#x189-1990008.2.7) says: -8 Longint current string with size. -4 Longint with reference count. But, when I want access to that structure, I have to do it backwards.

Re: [fpc-pascal] AnsiString

2011-01-25 Thread Jürgen Hestermann
Luis Fernando Del Aguila Mejía schrieb: p:=pointer(cad1); p:=p-8; Write('memory address : ',longint(p),'='); //Must show Size, but shows reference count Writeln(longint(p^)); I fail to see why you need to mess with the internals of ansistrings at all. What is the reason to access