Are function pointers compile time constants?

d coder dlang.coder at gmail.com
Sun Feb 20 06:59:15 PST 2011


Greetings

I tried to initialize a struct member with a function pointer, and
found that DMD2 did not like it. Are not function pointers compile
time constants? And why they should not be?

Regards
- Cherry


More information about the Digitalmars-d-learn mailing list