nested unions and structs
Alberto Simon
Alberto_member at pathlink.com
Thu Apr 27 02:38:27 PDT 2006
The union DWord below does not product the expected union, Data isn't at the
same address as the union start address is... What should I do to correct that??
public union Word
{
// Atributos
struct
{
public ubyte Low;
public ubyte High;
}
public ushort Data;
}
public union DWord
{
// Atributos
public uint Data;
struct
{
public Word HigherWord;
public Word LowerWord;
};
}
Regards,
Alberto Simon
More information about the Digitalmars-d
mailing list