From grgoswami at gmail.com  Wed Feb 25 12:59:38 2009
From: grgoswami at gmail.com (Gopi Goswami)
Date: Wed, 25 Feb 2009 06:59:38 -0500
Subject: [Rd] S4 helper functions: regular or generic?
Message-ID: <5811e0170902250359k3de97428h8f92f5882dcdab87@mail.gmail.com>

Hi there,


I want to write helper functions for a base class, which will be used
by its subclasses in the S4 world. This function ___will___ update
certain slots of its argument object. Please help me decide which one
of the following is a better approach with respect to coding style,
memory usage and speed:

o   Write a regular function.
o   Declare a generic and implement it just for the base class.


Thanks for sharing your insight and time,
gopi.
http://gopi-goswami.net/



[Rd] S4 helper functions: regular or generic?
Gopi Goswami