DIP26: properties defined

FG home at fgda.pl
Sat Feb 9 04:21:05 PST 2013


On 2013-02-09 12:57, Robert wrote:
> As you can't actually encapsulate the array with free functions just do:
>
> ref T front(T)(T[] arr);
>
> There is no value in using an actual setter.

Ah, sorry, you're right. It's an lvalue, so no setter is needed.



More information about the Digitalmars-d mailing list