[Issue 16058] `immutable delegate()` and `immutable delegate() immutable` are considered equal but treated differently

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue May 24 04:45:46 PDT 2016


--- Comment #2 from ag0aep6g at gmail.com ---
(In reply to Eyal Lotem from comment #1)
> I think it makes sense for the types not to be considered equal.
> (Head-mutable ptrs to immutable data exist, so why should delegates be
> inconsistent?)

A head mutable delegate would be `void delegate() immutable`, no? That is
considered different from the two types this is about.


More information about the Digitalmars-d-bugs mailing list