DMD 1.032 and 2.016 releases

Sean Kelly sean at invisibleduck.org
Wed Jul 9 14:48:17 PDT 2008


Bill Baxter wrote:
> 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.

So long as all users of Tango do the same thing.  I'm fine with doing 
this sort of thing behind the scenes in Tango, but not if it imposes 
similar requirements on our users.


Sean


More information about the Digitalmars-d-announce mailing list