19 Mar
2014
19 Mar
'14
3:16 p.m.
AMDG On 03/19/2014 12:26 AM, TONGARI J wrote:
2014-03-19 15:13 GMT+08:00 Antony Polukhin
: 2014-03-14 10:22 GMT+04:00 feverzsj
: <...> why not supply a interface like:
Val& v = var.assign(val);
for simplity, and the unnecessary "get" is also elimited.
<snip>
<snip> Seems reasonable to me, sometimes we do want to do some immediate operations after the assignment.
I don't think it's worth cluttering the interface. It's one more function that has to be documented and tested. I don't see this as being a common use and there's nothing stopping anyone who wants such a function from implementing it himself as a non-member. In Christ, Steven Watanabe