Uncallable delegates

Walter Bright newshound2 at digitalmars.com
Sat Jun 20 06:39:17 UTC 2026


On 6/18/2026 9:35 AM, Dukc wrote:
> Your instrumented example would compile and run like it does now, since you are 
> not actually calling the `const(int* delegate() @safe)` delegate. However, 
> Timon's example would result in the compiler complaining for line `auto p = 
> ps.dg();` that you're attempting to call an uncallable delegate.

The trouble is there is no way to tell if the `char*` return value has anything 
to do with the delegate context pointer or not.



More information about the dip.development mailing list