Uniform Function Call syntax for properties

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri Oct 8 07:03:20 PDT 2010


On 10/8/10 7:55 CDT, Steven Schveighoffer wrote:
> Someone was asking about UFC syntax for properties on d.learn, and I
> realized, we have a huge ambiguity here.
>
> Given a function:
>
> @property int foo(int x)
>
> Is this a global setter or a getter on an int?

Good question.

Andrei


More information about the Digitalmars-d mailing list