Re: Ordering of UDAs

2019-04-22 Thread Emmanuelle via Digitalmars-d-learn
On Monday, 22 April 2019 at 19:32:27 UTC, Adam D. Ruppe wrote: On Monday, 22 April 2019 at 19:02:57 UTC, Emmanuelle wrote: Hello! Does `__traits(getAttributes, ...)` return UDAs in the order they were declared in the source code, or is it unspecified? I think that is defined: https://dlang.o

Re: Ordering of UDAs

2019-04-22 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 22 April 2019 at 19:02:57 UTC, Emmanuelle wrote: Hello! Does `__traits(getAttributes, ...)` return UDAs in the order they were declared in the source code, or is it unspecified? I think that is defined: https://dlang.org/spec/attribute.html#uda "If there are multiple UDAs in scope

Ordering of UDAs

2019-04-22 Thread Emmanuelle via Digitalmars-d-learn
Hello! Does `__traits(getAttributes, ...)` return UDAs in the order they were declared in the source code, or is it unspecified?