Why D const is annoying
Mehrdad
wfunction at hotmail.com
Sat Dec 10 11:57:49 PST 2011
On 12/10/2011 11:52 AM, Trass3r wrote:
> http://d.puremagic.com/issues/show_bug.cgi?id=7091
Thanks. Sorry I'm too lazy to do that myself lol -- kinda busy studying
for exams and whatnot. (I really shouldn't be even working on this right
now. :P)
Also, I just wanted to note:
I've found a bunch of these bugs as a result of trying to *work around*
the previous bugs (!!!). For example, this one was a result of trying to
fix the opApply-with-inout issue, by copy/pasting the code for the const
and non-const versions.
But I guess it turned out mixins didn't play well with that?
_This_ fact (where working around one bug causing another) is why D's
const looks broken to me. Hope it makes sense why I've been complaining
about it so much!
More information about the Digitalmars-d
mailing list