[Issue 11979] New: inout const is not documented

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 23 11:25:30 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=11979

           Summary: inout const is not documented
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: spec
          Severity: normal
          Priority: P2
         Component: websites
        AssignedTo: nobody at puremagic.com
        ReportedBy: bugzilla at digitalmars.com


--- Comment #0 from Walter Bright <bugzilla at digitalmars.com> 2014-01-23 11:25:26 PST ---
>From https://d.puremagic.com/issues/show_bug.cgi?id=11966 :

--------------------------------------
> what does 'inout const' mean?

- A common type qualifier between immutable and inout
- If inout function returns inout(const(T)), it will be deduced to const(T),
immutable(T), or inout(const(T)). Different from inout(T), it won't be  deduced
to T because 'const' sticks.
--------------------------------------

Should be in function.dd

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


More information about the Digitalmars-d-bugs mailing list