Skip to content
Back to formatted view

Raw Message

Message-ID: <4FE293F7.2040405@fhcrc.org>
Date: 2012-06-21T03:24:39Z
From: Martin Morgan
Subject: S4 Reference Classes: declaring public and private methods
In-Reply-To: <4FDEE045.5040608@googlemail.com>

On 06/18/2012 01:01 AM, Janko Thyson wrote:
> Dear list,
>
> is there a way to declare public and private methods in S4 Reference
> Classes? If not, are there plans to add such a feature?

Hi Janko -- your question is a little ambiguous; if it's about a 
built-in facility to create public vs. private methods, I think the 
answer is no, there is no built-in facility.

For the more general question of how one might go about enforcing 
private methods, I can think of several convoluted starts, but these 
seem like terrible hacks and I wouldn't want to commit them to paper; 
perhaps someone else will be more bold.

Martin

>
> You'll find a small code example of what I mean at Stackoverflow:
> http://stackoverflow.com/questions/11073253/oop-with-r-is-there-a-way-to-declare-public-and-private-methods-s4-reference-c
>
>
> Thanks a lot,
> Janko Thyson
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel


-- 
Computational Biology / Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N.
PO Box 19024 Seattle, WA 98109

Location: Arnold Building M1 B861
Phone: (206) 667-2793