The Atom Consists of Protons, Neutrons and Electrons

Marco Leise Marco.Leise at gmx.de
Mon Feb 4 17:40:48 PST 2013


Just one note on your Sparky example (from the ASM point of
view): Instead of passing in a pointer to each struct member
(wagTheDog(sparky, sparky.bodi, sparky.bodi.tail);) you could
pass in only 'sparky' as the rest are known offsets from
sparky. It works because it is a POD. If bodi was a reference,
sparky.bodi.tail would still have to be passed in.


More information about the Digitalmars-d mailing list