[phobos] Time to get ready for the next release

Robert Jacques sandford at jhu.edu
Thu Apr 21 13:05:06 PDT 2011


On Thu, 21 Apr 2011 15:57:57 -0400, Jonathan M Davis <jmdavisProg at gmx.com>  
wrote:

>> How about the amount of existing code it breaks?  How about the fact  
>> that
>> it breaks using the same function for both method chaining and with
>> property syntax?
>
> Something like
>
> auto b = a.prop1.prop2.prop3;
>
> should work. I doesn't at present, but it should. There's a bug report  
> on it.

What about auto b = a.prop1(5).prop2(6).prop3(7); ?

> As for breaking existing code, _of course_ it's going to. That's to be
> expected, and I would have thought that that was expected when @property  
> was
> introduced in the first place.

Actually, no it wasn't expected. @property was introduced with loose  
semantics, not strict semantics. And, by the way, it was judged worth  
while with only loose semantics.


More information about the phobos mailing list