[R] Sealed for setGeneric

2008-03-13 Thread Christophe Genolini
Hi the list When two setGeneric occurs on the same function, the second erage the first and erase all the function previously define. Is it possible to prevent that ? Is it possible to declare a setGeneric that can not be erased later ? Something like the |sealed for setMethod...| || |Thanks|

Re: [R] Sealed for setGeneric

2008-03-13 Thread Charilaos Skiadas
On Mar 13, 2008, at 5:04 AM, Christophe Genolini wrote: Hi the list When two setGeneric occurs on the same function, the second erage the first and erase all the function previously define. Is it possible to prevent that ? Is it possible to declare a setGeneric that can not be erased

Re: [R] Sealed for setGeneric

2008-03-13 Thread Martin Morgan
Christophe Genolini [EMAIL PROTECTED] writes: Hi the list When two setGeneric occurs on the same function, the second erage the first and erase all the function previously define. 'erase' is only true if you attempt to define the generic in the same name space (e.g., in the global

Re: [R] Sealed for setGeneric

2008-03-13 Thread Christophe Genolini
an unusual strategy would be to use lockBinding to make the symbol associated with the generic unchangeable. This sounds nice, thanks. Why is it unusual ? Any side effect or just the practice? __ R-help@r-project.org mailing list