Labels in struct

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jan 31 08:14:28 PST 2015


Oh this hack also won't work with a label at the very end. You 
could use sizeof for that though (however that would include 
padding bytes. Perhaps last member's offsetof plus last member's 
sizeof is a bit more accurate.)


More information about the Digitalmars-d-learn mailing list