Upgrading a codebase from 2.065 to 2.066

Brian Schott via Digitalmars-d digitalmars-d at puremagic.com
Mon Jul 7 10:59:21 PDT 2014


On Wednesday, 2 July 2014 at 22:34:36 UTC, Brian Schott wrote:
> 5. A change to object.d broke a line of code that used "[]" as 
> the "defaultValue" argument to the get() function for AAs. 
> Casting "[]" to the expected type worked around this issue.

This has been fixed in the compiler. A recent change to druntime 
caused our code to fail to compile in a different way:

Error: AA key type YearQuarter should have 'size_t toHash() const 
nothrow @safe' if opEquals defined

This turned out to be another case of bad code no longer 
compiling, and it was very easy to fix.


More information about the Digitalmars-d mailing list