>>>>> "Ulrike" == Ulrike Grömping <[EMAIL PROTECTED]>
>>>>> on Fri, 18 Nov 2005 15:37:58 +0100 writes:
Ulrike> Dear R experts,
Ulrike> I have defined a class "myclass" and would like the
Ulrike> slots to be extractable not only by "@" but also by "$".
hmm, I know this is not what you've asked for, but
why would you want to do that? To me, it seems a pretty harmful idea
that only leads to confusion and does not provide sensible
functionality.
When S4 classes where created, using '@' instead of '@' with a
*different* meaning was very much on purpose and I think it's a
bit too ambitious to try being smarter than John Chambers,
the creator of the S4 object system, on this.
Martin Maechler, ETH Zurich
Ulrike> I now try to write a method for "$" that
Ulrike> simply executes the request [EMAIL PROTECTED], whenever someone
calls
Ulrike> object$slotname for any object of class "myclass".
Ulrike> ..............................
Ulrike> ..............................
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html