[Issue 13850] mixin template accepts delegates as function parameters
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 29 15:35:00 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=13850
Max Samukha <maxsamukha at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |maxsamukha at gmail.com
--- Comment #2 from Max Samukha <maxsamukha at gmail.com> ---
(In reply to RazvanN from comment #1)
> I cannot reproduce this. The code compiles, runs and exits gracefully.
How does this even work? Implicitly binding the function pointers to `this` is
an extremely confusing semantics. Rather than stacking yet another hack on top
of the pile, we'd better fix the underlying issue, which is member functions
having invalid types.
--
More information about the Digitalmars-d-bugs
mailing list