"privileged slots",
Hi! Everyone knew that there are some more and less official documents. And there are tons of things that are "more, more more and a little less". Thanks god that this time this "more and less" is so less that its not worthwhile to make fuss about. But this document is quite intersting. I have just two R questions which arised reading the document which a core members of the R-project cant find. 1. Is it intended to introduce privileged slots in the future version of R? 2. Is it true that one can gain execution speed by accessing slots using the function slots(object,name,check=FALSE)<-value would speed up execution? Sincerely Eryk *********** REPLY SEPARATOR ***********
On 5/27/2004 at 5:50 PM Martin Maechler wrote:
"Matthias" == Matthias Kohl <Matthias.Kohl at 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 at 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 at molgen.mpg.de ---W-W---- http://www.molgen.mpg.de/~wolski