[Issue 19036] .tupleof order guarantee

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 4 05:57:02 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=19036

--- Comment #3 from Guillaume Lathoud <gsub at glat.info> ---
Thanks for the answers. In another use case there is a class hierarchy, I also
need the fields of the base class, which .tupleof does not provide, so I am not
sure anymore how useful the present issue would be. (I ended up using something
along this line: [__traits( allMembers, MyClass)].sort() )

Maybe the spec could simply state that .tupleof does not provide any order
guarantee, as already specified for __traits( allMembers, MyClass ) and
__traits( derivedMembers, MyClass ).

--


More information about the Digitalmars-d-bugs mailing list