Re: Write/Writeln, etc

2009-05-08 Thread Steven Schveighoffer
On Thu, 07 May 2009 16:02:52 -0400, Jarrett Billingsley jarrett.billings...@gmail.com wrote: On Thu, May 7, 2009 at 1:38 PM, bearophile bearophileh...@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:

Re: Write/Writeln, etc

2009-05-08 Thread Steven Schveighoffer
On Fri, 08 May 2009 08:28:28 -0400, Georg Wrede georg.wr...@iki.fi wrote: Steven Schveighoffer wrote: On Thu, 07 May 2009 16:02:52 -0400, Jarrett Billingsley jarrett.billings...@gmail.com wrote: On Thu, May 7, 2009 at 1:38 PM, bearophile bearophileh...@lycos.com wrote: The following

Re: Write/Writeln, etc

2009-05-08 Thread Don
Steven Schveighoffer wrote: On Fri, 08 May 2009 08:28:28 -0400, Georg Wrede georg.wr...@iki.fi wrote: Steven Schveighoffer wrote: On Thu, 07 May 2009 16:02:52 -0400, Jarrett Billingsley jarrett.billings...@gmail.com wrote: On Thu, May 7, 2009 at 1:38 PM, bearophile bearophileh...@lycos.com

Write/Writeln, etc

2009-05-07 Thread bearophile
std.metastrings.Format of D 2.029 is broken, I think. 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); D2

Re: Write/Writeln, etc

2009-05-07 Thread BCS
Reply to bearophile, std.metastrings.Format of D 2.029 is broken, I think. 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);

Re: Write/Writeln, etc

2009-05-07 Thread Jarrett Billingsley
On Thu, May 7, 2009 at 1:38 PM, bearophile bearophileh...@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

Re: Write/Writeln, etc

2009-05-07 Thread Derek Parnell
On Thu, 7 May 2009 16:02:52 -0400, Jarrett Billingsley wrote: Once again: 'much' and 'too much' can never. modify. adjectives. They are not adverbs. Really? Have consulted the superdan on that? Also, I note that you have some sentences written without subject or verb, or object, and

Re: Write/Writeln, etc

2009-05-07 Thread superdan
Derek Parnell Wrote: On Thu, 7 May 2009 16:02:52 -0400, Jarrett Billingsley wrote: Once again: 'much' and 'too much' can never. modify. adjectives. They are not adverbs. Really? Have consulted the superdan on that? huh? wut? wut about me? if i type in vernacular doesn't

Re: Write/Writeln, etc

2009-05-07 Thread bearophile
Jarrett Billingsley: If you add braces, for some reason it works. I think that if you don't put braces the compiler sees: static if (true) else If you put them it sees: static if (true) {} else {} The first isn't correct D code. But I'd like the pragma to be seen as an instruction anyway by the