Quantum Superposition Observed in DMD at Compile Time
Meta
jared771 at gmail.com
Mon Jul 1 04:02:14 UTC 2019
On Monday, 1 July 2019 at 02:29:57 UTC, Exil wrote:
> If anything the foreach should be a regular loop. The only time
> CTFE should happen is with static foreach(). But that didn't
> exist until recently. Have no doubt this will break code,
> though they would just need to stick static infront of the loop
> to fix it? Possibly a deprecation? Doesn't make sense to have
> foreach() behave like static foreach() now that it exists.
I'm inclined to agree, except for the fact that changing it would
be a metric ton of code. More likely the constant folding needs
to be fixed, though I don't know if that's even possible.
More information about the Digitalmars-d
mailing list