How to list aggregate members in order of declaration at compile time?
Guillaume Lathoud
gsub at glat.info
Thu Jun 28 05:33:34 UTC 2018
On Friday, 11 November 2016 at 23:55:58 UTC, Jonathan M Davis
wrote:
> ...
>
> So, just provide a solid use case (if not multiple) as to why
> it needs to have a specific order, and you probably stand a
> good chance of it being added to the spec - especially since
> it's what the implementation does anyway, and the
> implementation isn't likely to change. And given that tupleof
> simply gives the member variables, I don't know of a good
> argument for why it should ever do anything other than given
> them in the order that they're declared.
>
> - Jonathan M Davis
Hello, here is an issue (with a use case):
https://issues.dlang.org/show_bug.cgi?id=19036
Guillaume Lathoud
More information about the Digitalmars-d-learn
mailing list