[Issue 21896] static if test fails after alias assignment

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 6 15:43:08 UTC 2021


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

Adam D. Ruppe <destructionator at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |destructionator at gmail.com

--- Comment #1 from Adam D. Ruppe <destructionator at gmail.com> ---
I think this is undefined in the language.... at declaration level, there is no
real order of operations. So the static if and assign conceptually happen
simultaneously (this is why D doesn't need forward declarations).

Obviously the alias assign thing does not follow this rule. But then we need to
decide: does the rule change or does alias assign change? And i don't know yet.

--


More information about the Digitalmars-d-bugs mailing list