are std.traits.FieldNameTuple and std.traits.Fields returned value always in sync?
mw
mingwu at gmail.com
Mon Jun 22 19:55:29 UTC 2020
On Saturday, 20 June 2020 at 20:42:03 UTC, Stanislav Blinov wrote:
> On Saturday, 20 June 2020 at 20:17:54 UTC, mw wrote:
>> Are their returned value, i.e the field names and their types
>> are always in the same order, and of the same length?
>>
>> If they are not, how to get sync-ed pairs (name, type)?
>>
>> If they are, why we need two separate calls, which cause
>> confusion.
> Yes, in the same order and of the same length.
Can we add this information to the doc? to make it clear to the
user:
https://dlang.org/library/std/traits.html
More information about the Digitalmars-d-learn
mailing list