alias tuples?

Janice Caron caron800 at googlemail.com
Sun Oct 14 09:48:25 PDT 2007


I'm a little confused at how that works.

Surely, this.tupleof returns a type tuple - that is, a sequence of
types? Surely then, the "a" in the foreach would be a type, not a
member variable name? Surely then, a.serialize() would be calling each
type's /static/ serialize() function, rather than the member function?

The goal is to call a function once for each actual struct member, not
once for each member's type.

Am I completely misunderstanding this?



More information about the Digitalmars-d mailing list