------- Comment #6 from  2009-01-12 03:09 -------
(In reply to comment #5)
> That's a feature! Even if method is not static, it still has a single unique
> body. If so, why can't you take its address?
"There are no pointers-to-members in D, but a more useful concept called
delegates are supported."

Even if there were, the type would not be
    void function()
as is declared in the attached code, but rather
    void function(A)
or perhaps something like
    void A.function()
akin to C++ notation (IIRC)
    void (A::*)()

    void function()
would work if the calling convention specifies that the context pointer be
always passed in a register that is never used for any other kind of function
argument, but that isn't the case in the current ABI.


Reply via email to