Skip to content

Possible bug in accessing methods documentation? (PR#9291)

2 messages · Duncan Murdoch

#
On 10/11/2006 2:48 PM, Seth Falcon wrote:
I think it's broken.  The line that looks broken is in .helpForCall, 
where it has

methods::"elNamed<-"(sigClasses, arg, class(argVal))

Looking at the elNamed<- function, I think this is supposed to be 
equivalent to

sigClasses[[arg]] <- class(argVal)

but it is not making any assignment.  I don't understand the point of 
doing the assignment that way, or why it's not working, so I'll leave 
this for someone else.

Duncan Murdoch
#
On 10/11/2006 4:26 PM, murdoch at stats.uwo.ca wrote:
Actually, why it's not working is obvious:  it's not assigning the 
result back into sigClasses.  But I still don't understand what it is 
doing that is different from the version below.

Duncan Murdoch