Skip to content

Commit 8872018

Browse files
author
maechler
committed
add explicit \date{}
git-svn-id: https://svn.r-project.org/R-dev-web/trunk@2264 c52295ea-58df-0310-926a-d16021944841
1 parent b4f21b3 commit 8872018

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

howMethodsWork.tex

+11-11
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
\title{How S4 Methods Work}
3030
\author{John Chambers}
31-
31+
\date{August 2006}
3232
\begin{document}
3333
\ifpdf
3434
\DeclareGraphicsExtensions{.pdf, .jpg, .tif}
@@ -89,8 +89,8 @@ \section{Functions, Classes, and Object-oriented Programming}
8989
Each method is stored within the generic function according to its \emph{signature}, which we can think of as a named list of classes, with the names corresponding to the formal arguments of the function. So for a function with arguments \SExpression{x} and \SExpression{y} (and perhaps others):
9090
\begin{Example}
9191
\SPrompt{}signature(x= "dgCMatrix", y="dgeMatrix")
92-
x y
93-
"dMatrix" "dgeMatrix"
92+
x y
93+
"dMatrix" "dgeMatrix"
9494
\end{Example}
9595
In a call to this function, arguments will have corresponding classes, either the actual class or \Cq{missing} if the argument is missing.
9696
The closeness of the actual arguments to the classes in the signature determines how well the method matches the call.
@@ -272,12 +272,12 @@ \subsection*{Primitive functions}
272272
\begin{Example}
273273
\SPrompt{}getGeneric("+")
274274
standardGeneric for "+" defined from package "base"
275-
belonging to group(s): Arith
275+
belonging to group(s): Arith
276276

277-
function (e1, e2)
277+
function (e1, e2)
278278
standardGeneric("+", .Primitive("+"))
279279
<environment: 0x2b82eb0>
280-
Methods may be defined for arguments: e1, e2
280+
Methods may be defined for arguments: e1, e2
281281
\end{Example}
282282
The generic functions corresponding to primitives are kept in a list in the \SPackage{methods} package, and used for method dispatch and other computations, without being assigned in the ordinary way.
283283
So long as computations access the generic function through \SFunction{getGeneric}, most computations should be unaffected.
@@ -293,7 +293,7 @@ \subsection*{Primitive functions}
293293
Instead, encountering an object of primitive type for a method signals that there is no method defined for this signature.
294294
The internal method search returns a special reference that tells the calling code in the evaluator to go on with the original built-in definition for the function.
295295
Programmers do need to be careful when working with selected method definitions to be prepared for a primitive object.
296-
It would be possible to use a special form of
296+
It would be possible to use a special form of
297297

298298
\subsection*{Active signature}
299299
\label{sec:active-signature}
@@ -305,10 +305,10 @@ \subsection*{Active signature}
305305
\SPrompt{}getGeneric("[")
306306
standardGeneric for "[" defined from package "base"
307307

308-
function (x, i, j, ..., drop)
308+
function (x, i, j, ..., drop)
309309
standardGeneric("[", .Primitive("["))
310310
<environment: 0x2a2207c>
311-
Methods may be defined for arguments: x, i, j, drop
311+
Methods may be defined for arguments: x, i, j, drop
312312
\end{Example}
313313
The argument \SExpression{drop} to the generic is only relevant for arrays; in addition, the argument \SExpression{j} is included to allow methods to depend on the class of the column index for two-way objects such as matrices or data frames.
314314

@@ -412,7 +412,7 @@ \section{Earlier Versions of Method Selection}
412412
\end{document}
413413

414414

415-
%%% Local Variables:
415+
%%% Local Variables:
416416
%%% mode: latex
417417
%%% TeX-master: t
418-
%%% End:
418+
%%% End:

0 commit comments

Comments
 (0)