Re: [R] "privileged slots"

About this list Date view Thread view Subject view Author view Attachment view

From: Wolski (wolski@molgen.mpg.de)
Date: Thu 27 May 2004 - 22:56:29 EST


Message-id: <200405271456290658.01737FD2@mail.math.fu-berlin.de>

Hi!

I think that there are no mechanism in S4 to make slots "private".
But you as a package developer can of course provide accessor functions to a public slot anyway and use slot(myslot,value,check=FALSE)
to switch of the function checkSlotAssignment function and speed up your code.

This is how I interpretation of this text of John Chambers.

Sincerely
Eryk

*********** REPLY SEPARATOR ***********

On 5/27/2004 at 2:01 PM Matthias Kohl wrote:

>Hi all,
>
>in the help for RClassUtils I found the expression "privileged slots" in
>function "checkSlotAssignment" with the explanation:
>
>/privileged slots (those that can only be set by accesor functions
>defined along with the class itself)/
>
>I thought all slots of a (not private) class can be a accessed by a user
>via the @ Operator.
>Is there a way to make a single slot of a class (not the whole class)
>private, so that you can access this slot only via an accessor function
>(not via @)?
>
>Thanks, for your help
>Matthias
>
>______________________________________________
>R-help@stat.math.ethz.ch mailing list
>https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Dipl. bio-chem. Eryk Witold Wolski @ MPI-Moleculare Genetic
Ihnestrasse 63-73 14195 Berlin 'v'
tel: 0049-30-83875219 / \
mail: wolski@molgen.mpg.de ---W-W---- http://www.molgen.mpg.de/~wolski

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:13 EST