[Issue 13247] switch doesn't work with pointers to functions. Also casting pointers to functions to integers doesn't work during compilation.

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Aug 4 02:19:11 PDT 2014


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

yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies at gmail.com

--- Comment #2 from yebblies <yebblies at gmail.com> ---
While you can do some things with a function pointer at compile time, you
_cannot_ convert it to an integer.

I'm not sure why you would expect switch to work on function pointers.

--


More information about the Digitalmars-d-bugs mailing list