www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6623] New: Position rigidity of system for delegates

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

           Summary: Position rigidity of  system for delegates
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc



void main() {
    auto f1 = cast(int delegate(int)  system)(int x){ return 0; }; // OK
    auto f2 = cast( system int delegate(int))(int x){ return 0; }; // Error
}


DMD 2.055:

test.d(3): basic type expected, not  
test.d(3): found ' ' when expecting ')'
test.d(3): semicolon expected following auto declaration, not 'int'
test.d(3): no identifier for declarator int delegate(int)
test.d(3): semicolon expected, not ')'
test.d(3): found ')' instead of statement
test.d(4): unrecognized declaration

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