[Issue 2094] transitive const can be broken easily
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jun 18 23:05:20 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2094
------- Comment #7 from wbaxter at gmail.com 2008-06-19 01:05 -------
I was just browsing through WalterAndrei.pdf from last year's D conference,
when I noticed the "return" storage class. I had forgotten about that one.
So I was wrong about Walter not having endorsed any particular solution to the
redundant const methods problem. The solution he proposed at the D conference
was to have something like:
const(char[]) capitalize(return const(char[]) s) { ... }
--
More information about the Digitalmars-d-bugs
mailing list