[Issue 8105] New: in ref

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 16 00:42:35 PDT 2012


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

           Summary: in ref
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: turkeyman at gmail.com


--- Comment #0 from Manu <turkeyman at gmail.com> 2012-05-16 00:44:06 PDT ---
'in' is a nice keyword to have, it's small, safer, and self documenting, we use
it all over the place: in T*, in T[], etc
But we also use: ref T a lot for passing single objects.

Currently we use: const ref T, but it would be nice if we could use: in ref T
to match all our other function arguments. The additional 'scope' safety of
'in' is always nice too, which we wouldn't usually bother typing because it's
too long and clutters the function declaration.

-- 
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