[Issue 6707] Error message for mismatch of const/non-const property functions needs to improve
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Oct 21 14:15:15 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6707
--- Comment #5 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-10-21 14:15:14 PDT ---
(In reply to comment #4)
> But I think a better error message, more newbie-friendly, tells the programmer
> how to fix the problem, (not complete error message):
>
> test.d(11): Error: function test.Foo.opSlice() needs to be const to [...]
If it's in a 3rd party library then the user has no other choice but to use a
const object. I don't think we should start recommending to rewrite code like
that, especially to newbies.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list