On 02/03/2013 05:11 PM, Andrei Alexandrescu wrote:
...
2. Allow people to do whatever they need to do without much aggravation.
In that case &a.p obeys the normal rules of taking a method's address,
and &(a.p) applies to the returned value.
I favor (2) and put it in http://wiki.dlang.org/DIP23. Will talk to Walter.
That is horrible! The entire language construct is necessarily a bit of
a patchwork, but there is no reason to aggravate this gratuitously.
...
* Are templated properties allowed?
** The access syntax for properties doesn't allow providing types
No.
Ditto.
Templated member variables are not allowed either.
(Actually they are silently rewritten to static member variables. I do
not like that.)