[Issue 21862] Taking address of non-static method without "this" should not be allowed
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Dec 6 07:45:12 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=21862
--- Comment #2 from Eyal <eyal at weka.io> ---
Why would you take the function ptr of a delegate without the ctx, except as a
"void*" value to compare against?
A delegate's function ptr is *not* callable without the context, so it should
not have the type of callable things.
If the test suite assumes the delegate is implicitly convertible to a callable
function without the context -- the test suite should be fixed, as this is
non-sensical.
--
More information about the Digitalmars-d-bugs
mailing list