minwin

Walter Bright newshound at digitalmars.com
Fri Dec 1 12:37:33 PST 2006


Don Clugston wrote:
> There's a horrible effect in C++ Windows where there's lots of code 
> which has #ifdef __MSVC__, even though it works on many other compilers.
> So vendors like CodePlay and Metrowerks fraudulently define __MSVC__.

That's just the start. I often find #ifdef WINDOWS when it's a compiler 
dependency, not a Windows dependency. Same for linux/__GNUC__

> I hope we can avoid this in D.

So do I.

> I've already seen some uses of
> DigitalMars_Inline_Asm
> because GDC doesn't support the full set of x86 opcodes. I think failure 
> to implement the spec should always be tested with a positive. Certainly 
> code should never have a list of compilers which meet the spec!
> 
> And if a vendor knows that they're not implementing part of the spec, 
> they should provide an identifier indicating that fact. That way, the 
> vendor can fix the problem without breaking existing code.

Yes.



More information about the Digitalmars-d-announce mailing list