Rev 35751 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{.BasicFunsList}\alias{.BasicFunsList}\title{List of Builtin and Special Functions}\description{A named list providing instructions for turning builtin and specialfunctions into generic functions.Functions in R that are defined as \code{.Primitive(<name>)} are notsuitable for formal methods, because they lack the basic reflectanceproperty. You can't find the argument list for these functions byexamining the function object itself.Future versions of R may fix this by attaching a formal argument listto the corresponding function. While generally the names of argumentsare not checked by the internal code implementing the function, thenumber of arguments frequently is.In any case, some definition of a formal argument list is needed ifusers are to define methods for these functions. In particular, ifmethods are to be merged from multiple packages, the different setsof methods need to agree on the formal arguments.In the absence of reflectance, this list provides the relevantinformation via a dummy function associated with each of the knownspecials for which methods are allowed.At the same, the list flags those specials for which methods aremeaningless (e.g., \code{for}) or just a very bad idea (e.g.,\code{.Primitive}).A generic function created via \code{\link{setMethod}}, forexample, for one of these special functions will have the argumentlist from \code{.BasicFunsList}. If no entry exists, the argumentlist \code{(x, ...)} is assumed.}\keyword{ programming }\keyword{ methods }