www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18876] New: Contradiction in Spec Concerning Properties

https://issues.dlang.org/show_bug.cgi?id=18876

          Issue ID: 18876
           Summary: Contradiction in Spec Concerning Properties
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dlang.org
          Assignee: nobody puremagic.com
          Reporter: qs.il.paperinik gmail.com

In section "Property Functions"[1] of "Functions" page, it says on 
2., second point: " property functions can only have zero, one or two
parameters."
and on
8.: "If a property function has no parameters, it works as a getter. If has
exactly one parameter, it works as a setter."

These cannot be understood simultaneously. 8. implies a  property must have one
or no parameters.

[1] https://dlang.org/spec/function.html#property-functions

--
May 19 2018