Is [] mandatory for array operations?

Pelle pelle.mansson at gmail.com
Sun May 9 06:36:31 PDT 2010


On 05/04/2010 10:19 PM, Andrei Alexandrescu wrote:
> In the same vein, probably it's time to bite the bullet and require
> @property for parens-less function calls.
>
> Andrei

Please, no. :)

Just require @property for assignment-is-a-call code.

//requires @property
foo.x = 3;

//does not require @property
auto s = foo.size;


Pretty please?


More information about the Digitalmars-d mailing list