On 3/17/12 9:10 AM, Sean Kelly wrote:
Pretty much. I'd expect to see:

version (linux) {
     // optimized impl
} else version (OSX) {
     version = UseDefault;
} else {
     static assert(false, "unknown platform");
}
version (UseDefault) {
     ...
}

Taking this to its logical conclusion means that _all_ code that is currently unguarded must be guarded by version (UseDefault).

Andrei


Reply via email to