Hi,

having this definition:


{$mode objfpc}
{$longstrings on}
type
        cmpstr = record
                ID: integer;
                Name: string;
                Value: single;
        end;

var
        buf: array [0..MAX] of cmpstr;

How does the memory layout of the buffer look like?

I tried to get there with ddd but I couln't find out how the string
inbetween is put into memory. For atomic types (integer, single) it's
pretty clear, but longstrings do have a variable size. How is the buffer
set up?

TIA,
Marc

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to