[Issue 2438] New: Cannot get types of delegate properties

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 1 02:36:43 PDT 2008


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

           Summary: Cannot get types of delegate properties
           Product: D
           Version: 2.020
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: samukha at voliacable.com


alias void delegate() Dg;
alias typeof(Dg.ptr) Ptr;
alias typeof(Dg.funcptr) Funcptr;
----
test.d(13): Error: argument void* to typeof is not an expression
test.d(13): Error: argument void* to typeof is not an expression
test.d(14): Error: void delegate() is not an lvalue

Worked around by defining an intermediate delegate instance:
alias void delegate() Dg;
Dg dummy;
alias typeof(dummy.ptr) Ptr;
alias typeof(dummy.funcptr) Funcptr;


-- 



More information about the Digitalmars-d-bugs mailing list