From Waclaw.Marcin.Kusnierczyk at idi.ntnu.no  Thu Apr  2 15:25:14 2009
From: Waclaw.Marcin.Kusnierczyk at idi.ntnu.no (Wacek Kusnierczyk)
Date: Thu, 02 Apr 2009 15:25:14 +0200
Subject: [Rd] actual argument matching does not conform to the
 definition (PR#13634)
In-Reply-To: <Pine.LNX.4.43.0904020539230.16128@hymn34.u.washington.edu>
References: <Pine.LNX.4.43.0904020539230.16128@hymn34.u.washington.edu>
Message-ID: <49D4BCBA.1070306@idi.ntnu.no>

Thomas Lumley wrote:
>
> The explanation is that quote() is a primitive function and that the
> argument matching rules do not apply to primitives.  That section of
> the R Language definition should say that primitives are excluded;  it
> is documented in ?.Primitive.

thanks.  indeed, the documentation --  the language *definition* --
should make this clear.  so this is a bug in the definition, which does
not match the implementation, which in turn is as intended (right?)

?.Primitive says:

"     The advantage of '.Primitive' over '.Internal' functions is the
     potential efficiency of argument passing.  However, this is done
     by ignoring argument names and using positional matching of
     arguments (unless arranged differently for specific primitives
     such as 'rep'), so this is discouraged for functions of more than
     one argument.
"

what is discouraged?

vQ



[Rd] actual argument matching does not conform to the definition (PR#13634)
Wacek Kusnierczyk