Displaying 1 result from an estimated 1 matches for "tp4307604p4307715".
2012 Jan 18
3
How to define a variable in a function that another function uses without using global variables
I would like to know if it is possible to make a function that defines a
variable in another function without setting that variable globally?
I would i.e. be able to define a variables value inside a function ("one
level above) which another function makes use of, without setting this
variable globally.
I have provided this very simple illustrating example.
test1=function(x)
{
x+y
}