Le 19/11/2012 21:55, Andrei Alexandrescu a écrit :
On 11/20/12 12:28 AM, deadalnix wrote:
Le 18/11/2012 22:52, Andrei Alexandrescu a écrit :
On 11/19/12 1:02 AM, Rob T wrote:
So what's up with @property?

It's a mistake on top of another. We need to redesign it to such that
the keyword '@property' is only required in cases that otherwise would
be ambiguous (functions returning functions).

Andrei


It isn't the only ambiguous case.

That's why it's good to enumerate them all in
http://www.prowiki.org/wiki4d/wiki.cgi?LanguageDevel/DIPs/DIP21.

Thanks,

Andrei

I'm not sure how it fit in the DIP but &funName is ambiguous when funName return a reference.

In general, mixes of returning callables or references, @properties, auto calling functions and &syntax does a really bad mix.

Reply via email to