Skip to content
Prev 31156 / 63424 Next

overwriting '<-' and infinite recursions

On Fri, 23 Jan 2009, Yi Zhang wrote:

            
I'm still fuzzy about what you are trying to accomplish.  You have
some code, say openFA(), that produces the oa value with

    a <- openOA()

Then you could do

    b <- a

and then

    b[1] <- 0

or

    a[1] <- 0

Do you want these to have the same effect, do you want a[1] <- 0 to do
one thing if b <- a has happened and another if not, should one signal
an error, ...?
would't really help as

    d <- list(a)

and

    f <- fuction(b) { ... }
    f(a)

would create similar issues that would not be addressed.

luke