std.traits.Fields(T), FieldNameTuple(T) - order guaranteed?

Liam McSherry via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 27 06:09:07 PDT 2016


Since it isn't mentioned in the documentation, do 
`std.traits.Fields(T)` and `std.traits.FieldNameTuple(T)` return 
the fields and field names in a deterministic order?

Further, will they return the fields/field names in the same 
order? That is, will `fields[0]` be the type of `field_names[0]`?


More information about the Digitalmars-d mailing list