Uncallable delegates

Walter Bright newshound2 at digitalmars.com
Sat May 16 06:47:21 UTC 2026


On 5/15/2026 9:55 PM, Dukc wrote:
> I will analyse your class inheritance analogy later when I have more time, 
> likely this evening. But, if I understand right, your reservations are 
> specifically about the conversion rules. Are you already sold on the need to 
> make some delegates uncallable, or do you have also have some other concerns 
> regarding them?

My concern is this problem is a problem with the implicit conversion of a 
delegate to `pure`. I suggest that problem get fixed before going any further 
with this. The reason is the bug examples seem to rely on such an implicit 
conversion.

If the same problem can be demonstrated without using pure attributes, then it 
is a problem separate from the `pure` inheritance issue.

Forgive me for asserting that many, many of the issues that have been posted to 
bugzilla turned out to not be the problem the submitter thought it was, but 
something unexpected which was revealed when the problem submission was pared 
down to a minimal example.


More information about the dip.development mailing list