Is there a way to return the name of a function (a string) from a pointer to that function?

Function pointer example from D Reference:
---
int function() fp;

void test()
{
    static int a = 7;
    static int foo() { return a + 3; }

    fp = &foo;
}

void bar()
{
    test();
    int i = fp();       // i is set to 10
}
---

Can I get "foo" from fp?

Paul


Reply via email to