[Issue 18876] New: Contradiction in Spec Concerning Properties
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sat May 19 16:04:40 UTC 2018
    
    
  
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 at puremagic.com
          Reporter: qs.il.paperinik at 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
--
    
    
More information about the Digitalmars-d-bugs
mailing list