[R-gregmisc-users] SF.net SVN: r-gregmisc: [1259] trunk/gtools/man/defmacro.Rd
Brought to you by:
warnes
From: <wa...@us...> - 2008-04-12 19:42:23
|
Revision: 1259 http://r-gregmisc.svn.sourceforge.net/r-gregmisc/?rev=1259&view=rev Author: warnes Date: 2008-04-12 12:42:16 -0700 (Sat, 12 Apr 2008) Log Message: ----------- Improve text explanation of how defmacro() and strmacro() differ from function(). Modified Paths: -------------- trunk/gtools/man/defmacro.Rd Modified: trunk/gtools/man/defmacro.Rd =================================================================== --- trunk/gtools/man/defmacro.Rd 2008-04-12 19:19:45 UTC (rev 1258) +++ trunk/gtools/man/defmacro.Rd 2008-04-12 19:42:16 UTC (rev 1259) @@ -22,13 +22,13 @@ given in \code{expr}, with formal arguments given by the other elements of the argument list. - A macro is similar to a function definition, the arguments are - handled. In a function, formal arguments are simply variables that - contains the result of evaluating the expressions provided to the - function call. In contrast, macros actually modify the macro body by - \code{replacing} each formal argument by the expression - (\code{defmacro}) or string (\code{strmacro}) provided to the macro - call. + A macro is similar to a function definition except for handling of + formal arguments. In a function, formal arguments are simply + variables that contains the result of evaluating the expressions + provided to the function call. In contrast, macros actually modify + the macro body by \emph{replacing} each formal argument by the + expression (\code{defmacro}) or string (\code{strmacro}) provided to + the macro call. For \code{defmacro}, the special argument name \code{DOTS} will be replaced by \code{...} in the formal argument list of the macro so This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |