new DIP47: Outlining member functions of aggregates

Walter Bright newshound2 at digitalmars.com
Mon Sep 9 21:59:04 PDT 2013


On 9/9/2013 9:24 PM, Martin Nowak wrote:
>  > 7. Outlined member function return types, parameter types, and function
> bodies have private access to the module where the aggregate is declared.
>
> I think this is problematic because it gives up the nice
> everything-within-this-file property of private.
> Doesn't package access mitigate the need for private access?

The trouble with eschewing private access for member functions is then arguably 
the member functions do not belong in the class at all - they should be UFCS 
functions.



More information about the Digitalmars-d mailing list