[Issue 5458] New: scope for function parameters is not documented

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 17 08:07:56 PST 2011


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

           Summary: scope for function parameters is not documented
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: websites
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrej.mitrovich at gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2011-01-17 08:06:00 PST ---
A user asked on SO about the semantics of scope in function parameters:
http://stackoverflow.com/questions/4711309/meaning-of-scope-in-d-for-a-parameter

It seems this isn't documented in the functions section:
http://www.digitalmars.com/d/2.0/function.html

It does say that the in storage class is equivalent to const scope, but it
never defines what const does in function parameters. Could we please add this
to the docs?

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