[phobos] Time to get ready for the next release
Jacob Carlborg
doob at me.com
Sat Apr 23 13:06:35 PDT 2011
On 23 apr 2011, at 17:32, David Simcha wrote:
> 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.
Ok, then I probably misunderstood. What about:
writeln = "foo";
is that already fixed?
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
--
/Jacob Carlborg
More information about the phobos
mailing list