http://d.puremagic.com/issues/show_bug.cgi?id=4545


Stewart Gordon <s...@iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |s...@iname.com
            Version|D2                          |D1 & D2


--- Comment #2 from Stewart Gordon <s...@iname.com> 2010-08-07 05:31:59 PDT ---
I'm not sure.  The existence of .funcptr seems to contradict

http://www.digitalmars.com/d/1.0/type.html#delegates
"There are no pointers-to-members in D, but a more useful concept called
delegates are supported."

See also bug 2557.

Applies to D1 as well, though new A must be cast.  Moreover, you don't need to
go through an alias - DMD 1.062 accepts even
    dg.funcptr = &A.foo;

But non-static members of structs/classes/unions are still compile-time
entities, and they have properties.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to