[GSoC] 'Independency of D from the C Standard Library' progress and update thread

Timon Gehr timon.gehr at gmx.ch
Wed Jul 24 04:21:40 UTC 2019


On 06.07.19 18:10, Stefanos Baziotis wrote:
> 
> Basically, I should have been able to do:
> version (GNU)
> {
>      // mixin
> }
> else
> {
>      static foreach
> }
> 
> but that didn't work, meaning GDC tried to compile static foreach

It won't compile it, but it will attempt to parse it.

You should be able to do:

version(GNU){ /+mixin+/ }
else mixin(q{ /+static foreach+/ });


More information about the Digitalmars-d mailing list