DIP23 draft: Fixing properties redux
Jonathan M Davis
jmdavisProg at gmx.com
Sun Feb 3 17:56:56 PST 2013
On Sunday, February 03, 2013 20:30:48 Andrei Alexandrescu wrote:
> On 2/3/13 3:16 AM, Andrei Alexandrescu wrote:
> [snip]
>
> Some more thinking got me to three simple principles that guide the
> proposed property design:
>
> http://wiki.dlang.org/DIP23#In_a_nutshell
>
> I think most, if not all, detailed rules derive from these.
Technically, the bit about having exactly one or exactly two parameters is
wrong, unless you're counting the invisible this pointer/reference in that.
Member property functions end up with exactly zero or exactly one parameters.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list