Re: [R] method dispatching vs inheritance/polymorphism (re-post)

2010-04-25 Thread Duncan Murdoch
On 25/04/2010 9:07 AM, Albert-Jan Roskam wrote: Hi, I'm having trouble seeing the added value over functions defined by setGeneric vis-a-vis methods defined by inheritance and polymorphism. setGeneric offers a 'clean' call to a generic function, ie. no need to call new(), so less typing to do

[R] method dispatching vs inheritance/polymorphism (re-post)

2010-04-25 Thread Albert-Jan Roskam
Hi, I'm having trouble seeing the added value over functions defined by setGeneric vis-a-vis methods defined by inheritance and polymorphism. setGeneric offers a 'clean' call to a generic function, ie. no need to call new(), so less typing to do for the user. But such explicit calls can also be