Final by default?

Walter Bright newshound2 at digitalmars.com
Sat Mar 15 14:56:07 PDT 2014


On 3/15/2014 2:22 AM, Jacob Carlborg wrote:
> On Friday, 14 March 2014 at 18:06:47 UTC, Iain Buclaw wrote:
>
>>     else version (OSX) {
>>         version (PPC)
>>            iSomeWackyFunction();
>>         else
>>            SomeWackyFunction();   // In hope there's no other Apple hardware.
>
> There's also ARM, ARM64, x86 32bit and PPC64.

Right, there should not be else clauses with the word "hope" in them. They 
should be "static assert(0);" or else be portable.



More information about the Digitalmars-d mailing list