C locale

Walter Bright newshound2 at digitalmars.com
Fri Sep 27 18:52:10 PDT 2013


On 9/27/2013 4:44 PM, "Luís Marques" <luis at luismarques.eu>" wrote:
> On Friday, 27 September 2013 at 19:23:12 UTC, Walter Bright wrote:
>>     static assert(0);
>
> Do you prefer assert(0) instead of assert(false)?

Do whichever you prefer.

> Is it not worth to put a
> message after the 0/false? (static assert(0, "foo missing"); )

I find assert messages to be redundant, pointlessly repeating what is obvious 
from the context, and saying things an extra time.

But I'm in the minority with that opinion.


> BTW, does that mean that gcc also defines capitalized "OSX", "Posix", etc.?
> (otherwise I don't understand your argument)

If you're looking for gcc naming consistency, you'll be badly disappointed.


More information about the Digitalmars-d mailing list