[Issue 19842] std.signals Segfault when connecting with a lambda

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 7 13:22:26 UTC 2021


Ajieskola at gmail.com changed:

           What    |Removed                     |Added
                 CC|                            |Ajieskola at gmail.com

--- Comment #1 from Ajieskola at gmail.com ---
Lambda is a delegate in this context. I'm testing with v2.096.0 release
canditate and latest Phobos.

This bug does not trigger only with lambda, it triggers with any delegate that
is not a class member function.

The documentation does warn that the delegates must be class delegates, but it
does not say that that they must be member function pointers. This needs to be
clarified, or preferably it should be made to work with non-member-function
delegates too.


More information about the Digitalmars-d-bugs mailing list