[phobos] Time to get ready for the next release
David Simcha
dsimcha at gmail.com
Sat Apr 23 08:32:03 PDT 2011
On 4/23/2011 11:24 AM, Jacob Carlborg wrote:
> I think I would like to have something in the middle of strict and
> loose semantics. I would like that functions marked with @property
> have to be called like a field:
>
> auto bar = foo.field;
> foo.field = 3;
>
> But functions not marked with @property still can be called without
> the parentheses:
>
> foo.bar();
> foo.bar;
Maybe there's been some misunderstanding, but actually this is what
loose semantics means. Loose semantics (at least as I understand them)
mean stuff marked @property would not be callable using method syntax,
and this rule would be used to disambiguate the corner cases, but
nothing would change for stuff not marked @property.
More information about the phobos
mailing list