SDC-32bit

deadalnix via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sat Aug 9 09:54:51 PDT 2014


On Tuesday, 5 August 2014 at 17:02:28 UTC, Dicebot wrote:
> On Tuesday, 5 August 2014 at 16:54:47 UTC, Stefan Koch wrote:
>>> I'm not sure what you mean.   Are you referring to things 
>>> like pragma msg?
>>
>> to things like mixin("mixin(`writeln ("Hello World");`");
>
> ```
> bool foo() { ... }
>
> template bar(bool cond)
> {
>     static if (cond)
>         enum bar = "int a;";
>     else
>         enum bar = "int b;";
> }
>
> mixin(bar!(foo()));
>
> pragma(msg, is(typeof(a)));
> ```
>
> Good luck doing parallel semantic analysis :D I am sure 
> deadalnix can give example much worse than that though.

Yes, this kind of thing, and it can get much more nasty if you 
scatter the declaration in various scopes, or better in various 
modules.


More information about the Digitalmars-d-announce mailing list