[Issue 8121] New: "scope ref" is perfectly OK

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat May 19 12:25:24 PDT 2012


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

           Summary: "scope ref" is perfectly OK
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: wfunction at hotmail.com


--- Comment #0 from wfunction at hotmail.com 2012-05-19 12:27:00 PDT ---
void test(scope ref int) { }
void main() { }

There is nothing wrong with passing something by reference with 'scope', so DMD
should compile this.

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


More information about the Digitalmars-d-bugs mailing list