OpenBSD port of dmd?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri Mar 16 16:04:26 PDT 2012


On 3/16/12 5:27 PM, Walter Bright wrote:
> There should never, EVER, in the library code be something like:
>
> version (FreeBSD)
> ... do something weird with FreeBSD ...
> else
> ... do the default ...
>
> If you find any code like this in the library, please file a bugzilla
> entry for it.
>
> Instead:
>
> version (FreeBSD)
> ... do something weird with FreeBSD ...
> else
> static assert(0, "OS not supported");

Never say never. There are I/O routines that are specialized for several 
OSs and fall back to a generic (slower) implementation.

Andrei



More information about the Digitalmars-d mailing list