[Rd] pinning down symbol values (Scoping/Promises) question

2007-02-16 Thread Ross Boylan
I would like to define a function using symbols, but freeze the symbols at their current values at the time of definition. Both symbols referring to the global scope and symbols referring to arguments are at issue. Consider this (R 2.4.0): k1 - 5 k [1] 100 a - function(z) function() z+k a1 -

Re: [Rd] pinning down symbol values (Scoping/Promises) question

2007-02-16 Thread Gabor Grothendieck
See ?force a - function(z) { force(k) function() z+k } On 2/16/07, Ross Boylan [EMAIL PROTECTED] wrote: I would like to define a function using symbols, but freeze the symbols at their current values at the time of definition. Both symbols referring to the global scope and