Re: [R] "privileged slots"

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

From: Martin Maechler (maechler@stat.math.ethz.ch)
Date: Fri 28 May 2004 - 01:50:52 EST


Message-id: <16566.3676.127996.996941@gargle.gargle.HOWL>


>>>>> "Matthias" == Matthias Kohl <Matthias.Kohl@uni-bayreuth.de>
>>>>> on Thu, 27 May 2004 14:01:51 +0100 writes:

    Matthias> Hi all, in the help for RClassUtils I found the
    Matthias> expression "privileged slots" in function
    Matthias> "checkSlotAssignment" with the explanation:

    Matthias> /privileged slots (those that can only be set by
    Matthias> accesor functions defined along with the class
    Matthias> itself)/

RClassUtils ???

> help.search("RClassUtils")

 No help files found with alias or concept or title matching
 'RClassUtils' using fuzzy matching.

-----

So I guess that's not something in a standard R document.
You should rather keep to the 'official documentation' ...

    Matthias> I thought all slots of a (not private) class can
    Matthias> be a accessed by a user via the @ Operator.

I tend to agree with your thoughts...

    Matthias> Is there a way to make a single slot of a class (not
    Matthias> the whole class) private, so that you can access
    Matthias> this slot only via an accessor function (not via @)?

I'd rather guess not.

    Matthias> Thanks, for your help Matthias

Martin

______________________________________________
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