[spec, CC Dibyendu Majumdar] Should static foreach be in under "conditional compilation"?
Dibyendu Majumdar
d.majumdar at gmail.com
Sun May 19 09:37:17 UTC 2019
On Sunday, 19 May 2019 at 01:27:12 UTC, Max Haughton wrote:
> On Saturday, 18 May 2019 at 23:39:55 UTC, Mr. Spec wrote:
>> Maybe it isn't just that static foreach should be moved, but
>> maybe just change the page title from "Conditional
>> Compilation" to something else that could contain compile time
>> features such as version, debug, static assert, etc?
>
> To be rigorous, ideally the spec should abstract the process of
> execution into discrete steps, one of which would contain the
> compile time features of D (i.e. Expand all static foreach-s
> into rigorously defined D, but the actual lowering of this
> would be handled by a different chapter of the specification.
I guess this is a tricky area. Is there any document that covers
the steps - i.e. when do the compile time modifications occur in
the compilation process? Do they occur repeatedly or only once?
Regards
More information about the Digitalmars-d
mailing list