Write/Writeln, etc

Jarrett Billingsley jarrett.billingsley at gmail.com
Thu May 7 13:02:52 PDT 2009

On Thu, May 7, 2009 at 1:38 PM, bearophile <bearophileHUGS at lycos.com> wrote:

> The following doesn't work, the pragma isn't seen as an instruction, I guess this is normal, but I don't like it much:
> static if (true)
>    pragma(msg, "true");
> else
>    pragma(msg, "false");

Funny, I just ran into that today too.  If you add braces, for some
reason it works.

> D2 programs need more and more compile-time printing, and:
> pragma(msg, ToString(...) ~ ...);
> isn't much nice.

Once again: 'much' and 'too much' can never.



They are not adverbs.

More information about the Digitalmars-d mailing list