On Thursday, 28 August 2014 at 10:38:12 UTC, monarch_dodra wrote:
On Wednesday, 27 August 2014 at 21:43:40 UTC, bearophile wrote:
rcor:
It compiles if you use:
@property auto feature() const pure nothrow { return _feature;
}
Otherwise I get strange errors like:
...\dmd2\src\phobos\std\exception.d(986,31): Error: pure
function 'std.exception.doesPointTo!(Point, Point,
void).doesPointTo' cannot call impure function
'temp.Point.feature'
Bye,
bearophile
Seems like a library bug. Unsure if DMD or phobos for this one,
but there is definitely a phobos bug to be fixed anyways. I'll
investigate both.
DMD issue:
https://issues.dlang.org/show_bug.cgi?id=13392
Phobos issue:
http://forum.dlang.org/thread/uignsankcumgmhwpo...@forum.dlang.org#post-uignsankcumgmhwpoead:40forum.dlang.org