[Issue 7312] const should be abstract
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jun 27 00:03:43 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7312
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |clugdbug at yahoo.com.au
--- Comment #3 from Don <clugdbug at yahoo.com.au> 2012-06-27 00:06:13 PDT ---
It is currently possible to declare 'const int' variables even though they are
identical to 'immutable int' ones. This is similar.
And consider:
const[] foo(S y) pure { ... }
With this proposal, that's OK for struct S, as long as the struct has a
pointer.
But if S has no pointers, the return value needs to be immutable.
That's just annoying.
This proposal doesn't add any value.
--
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