From h.wickham at gmail.com  Sun Feb 24 01:41:42 2008
From: h.wickham at gmail.com (hadley wickham)
Date: Sat, 23 Feb 2008 18:41:42 -0600
Subject: [Rd] Aliasing a function
In-Reply-To: <971536df0802231552r3295c86n95cd5322aaa18d3b@mail.gmail.com>
References: <f8e6ff050802231440xcbe8597yf99b2fb83e9c2ca3@mail.gmail.com>
	<000001c87674$4cd1a230$e674e690$@ca>
	<971536df0802231552r3295c86n95cd5322aaa18d3b@mail.gmail.com>
Message-ID: <f8e6ff050802231641w6435b514i6c50c6448d72e531@mail.gmail.com>

On Sat, Feb 23, 2008 at 5:52 PM, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
> I assume he wants to be able to change the
>  formals although its confusing since the example
>  uses the same formals in both cases.

Yes, that was an important point that I forgot to mention!  Thanks for
the pointer to formals but it doesn't work in this case:

function (a = 1, b = 2, c = 3)
g(...)
> f(c=5)
Error in f(c = 5) : '...' used in an incorrect context

Hadley


-- 
http://had.co.nz/



[Rd] Aliasing a function
hadley wickham