[Rd] RHS of assignment is evaluated eagerly?

2013-12-26 Thread Peter Meilstrup
Is this expected behavior, and if so, why? I would have expected neither 'arg' nor 'value' to evaluate until forced. `test-` - function(obj, arg, value) { 1 #force no args } x - 1 test(x, print(evaled arg)) - print(evaluated value) ## [1] evaluated value Peter

Re: [Rd] RHS of assignment is evaluated eagerly?

2013-12-26 Thread Simon Urbanek
On Dec 26, 2013, at 10:26 PM, Peter Meilstrup peter.meilst...@gmail.com wrote: Is this expected behavior, and if so, why? I would have expected neither 'arg' nor 'value' to evaluate until forced. `test-` - function(obj, arg, value) { 1 #force no args } x - 1 test(x, print(evaled arg)) -