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
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.
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