[Issue 6741] implicit casting of pure-function delegate result to immutable breaks immutability.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 19 21:20:37 PDT 2014
https://d.puremagic.com/issues/show_bug.cgi?id=6741
Infiltrator <lt.infiltrator at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lt.infiltrator at gmail.com
--- Comment #1 from Infiltrator <lt.infiltrator at gmail.com> 2014-03-19 21:20:35 PDT ---
Why is this a bug? With the delegate, it is the pointer itself which becomes
immutable, not the pointed-to function. This appears to be correct behaviour.
Furthermore, disallowing any delegate-containing object to be immutable seems
unnecessarily strict for no (?) benefit.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list