DIP28, on properties, availabel for destruction as well

Jacob Carlborg doob at me.com
Thu Feb 28 05:06:38 PST 2013


On 2013-02-28 09:21, deadalnix wrote:

> Must is not appropriate here, as it isn't an obligation at all. I don't
> really see what is the concern here.
>
> If the function is simple, then it will be inlined and unused returned
> values can be optimized away. If the function is complex, the cost of
> returning something when not needed will be negligible anyway.
>
> What is your concern here ?

My concern here is setters that doesn't return a value. They won't work 
with chained assignments. Another thing that will break when changing a 
filed to a property.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list