Newbie Question - memory overlays
Jacques Collin
zerozerosix at hotmail.com
Sun Oct 22 18:54:51 PDT 2006
My apologies if this has been answered before -- in which case,
kindly point me to the source.
Delphi (Borland) allows one to overlay memory variables
" To create a new variable that resides at the same address as an
existing variable, use the name of the existing variable (instead
of an address) after the word absolute. For example,
var
Str: string[32];
StrLen: Byte absolute Str;
specifies that the variable StrLen should start at the same
address as Str. "
Question: Does D implement somrthing similar?
This yould be useful if I could refer to a slice of a vector by a
different name.
--- thanks --
More information about the Digitalmars-d
mailing list