On Fri, 22 Apr 2011 15:26:51 -0400, Steve Schveighoffer
<[email protected]> wrote:
Actually, I think you are right. I wasn't thinking about dmd erroring
on a statement that does nothing. You'd have to assign something to the
expression, like:
auto x = s.seconds = 5;
Which still looks like it does something else, but is much less likely
to occur.
You wouldn't need the parameter to be immutable, because the parameter
is a value, making this a strong-pure function.
But this is still not an argument against strict properties.
You were making an argument for strict properties, via actual bug reports
(which I commend you on), and I was making a counter-argument to your
argument.
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos