[Issue 23515] Named Enum of function SIGSEGFAULT

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 8 11:25:18 UTC 2024


https://issues.dlang.org/show_bug.cgi?id=23515

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305 at gmail.com

--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
As a workaround you can name the anonymous function and it works:

```
void fun() {}

enum Easing : void function()
{
    identity = &fun
}                                                                               
void main()
{
    Easing.identity();
}
```

This is just to unblock you, I'm looking now into how to make it work as is.

--


More information about the Digitalmars-d-bugs mailing list