DMD 1.032 and 2.016 releases

Bill Baxter dnewsgroup at billbaxter.com
Wed Jul 9 13:53:54 PDT 2008


Sean Kelly wrote:
> == Quote from Walter Bright (newshound1 at digitalmars.com)'s article
>> Mostly bug fixing.
>> http://www.digitalmars.com/d/1.0/changelog.html
>> http://ftp.digitalmars.com/dmd.1.032.zip
>> http://www.digitalmars.com/d/2.0/changelog.html
>> http://ftp.digitalmars.com/dmd.2.016.zip
> 
> I don't suppose there's any chance that bugzilla 288 could be fixed
> in 1.0 as well?  I know it's a breaking change from a code perspective,
> but it was clearly considered a bug in 1.0, and it makes maintaining
> cross-compatible code between 1.0 and 2.0 difficult at best.

This one seems easier than many other things to make cross-version 
compatible.   Can't you pretty much just do

version(D_Version2) {
    alias bool OpEqBool;
} else {
    alias int OpEqBool;
}

And use int inside opEquals itself, but throw in a cast to bool on the 
return value for D2.  Seems like that would work.

--bb


More information about the Digitalmars-d-announce mailing list