[fpc-pascal] more questions on storage

Marc Santhoff M.Santhoff at t-online.de
Wed Sep 26 12:00:42 CEST 2007


Am Mittwoch, den 26.09.2007, 11:34 +0200 schrieb Marco van de Voort:
> > > > set up?
> > > 
> > > Longstrings are not working correctly. You should use ansistrings or
> > > shortstrings.
> > 
> > Okay, good to know. Besides I'm using fpc 2.0.4, what is it that's not
> > working?
> > 
> > And back to the original question: how is the memory layout using
> > AnsiString then?
> 
> The field is a pointer to the ansistring. Which is basically a pchar with a
> TAnsirec record on negative offset of the ptr value.

Thanks, that's what I assumed and could not proof.

Is this the case for any occurences of AnsiString, the type name itself
is a pointer behind the scenes or only in this special case of an array
(would make less sense)?

Marc





More information about the fpc-pascal mailing list