Kevin Ryde on Thu, 12 Nov 2015 09:44:06 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
- To: pari-users <pari-users@pari.math.u-bordeaux.fr>
- Subject: Re: Vector of args
- From: Kevin Ryde <user42_kevin@yahoo.com.au>
- Date: Thu, 12 Nov 2015 19:34:35 +1100
- Delivery-date: Thu, 12 Nov 2015 09:44:06 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s2048; t=1447317837; bh=mC7jO9gYr3IQN8X4B+ZqkeGETZAn8kGVStciiCDMQkw=; h=From:To:Subject:References:Date:From:Subject; b=bizM8aosPMEQExg0MdEnnNMxvcXKcmlIxi2e1T03sID/xPR9UyW73ad2ITOVTY9MJq2pJwzFM62angcS2kQiyBP5p3NnwilEW8BzxCuqPA3Eaj7r5En06HUOXX6NoTe9G1nyEYthdREE2cOuwBuBOT5bM1fpGbdKcEE4RsgRJMiQdOPnYLfT0u1I9taht+1fhq1ue4nGl2YnFprBUtQURAx4pAbSq1wQwO0yp83SoVCxgVtoSBxBMM7NRXHey38XJeyQ7prySXS+6BKDLSXRHewCCkKxPgos9WQH2HVq+lop+vWa5gy5AjrqpPPmgxkZJ+A0ZRnh5z6E0SnnKgzeAw==
- Organization: Bah Humbug
- References: <CAFBvUauWBkEknKpUbg5NbE7uFxQ=EZ=98Z3bGbX4Z250=dvgLQ@mail.gmail.com> <20151017212744.GC4387@yellowpig> <CAMLkfFRwVfWaEz1Q8v8235f0BFBw=Hv-vZtiBA3hOTjdfKV4Tg@mail.gmail.com> <20151019171113.GG23787@yellowpig> <CAMLkfFRznhScOo0-nwNKsuiWE=E_bk0UOsTY3acfziqNvY3NaA@mail.gmail.com> <20151019212452.GA32274@yellowpig> <CAMLkfFRznhU+AWXezqA90oCXRJkSJN9ypbg2tyAkCF8sSc8haQ@mail.gmail.com> <20151020230211.GB6460@yellowpig> <878u666zkz.fsf@blah.blah> <CAMLkfFSiz-rZqJuidt3np+p6JrhxXFSkBbPPONNmSiEfzVo=Yg@mail.gmail.com> <20151110222443.GA2392@yellowpig> <CAMLkfFSZmSCQoMC2hi=L5Z_HkWmB1XRVpDk5zKVv-yEH0oiC=w@mail.gmail.com>
- User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
On 2015-11-10 at 23:24 GMT+01:00 Bill wrote:
>
> f(a,b,c,d[..])=....
> and then call(f,[1,2,3]) will still work
Oh, though presently that would be for not strictargs,
default(strictargs,1);
f(a,b,c,d[..])=print(d);
call(f,[1,2,3])
=>
missing mandatory argument 'd' in user function
Loïc Grenié <loic.grenie@gmail.com> writes:
>
> or, worse, if someone else uses > call(f,...)
> the upgrade of f makes the "call" break.
Yes. I worry the caller in effect begins to know things about how the
func likes to receive its args. Let it keep its nose out :-).
(Bill points out in the bug that there's issues with default args, but
I'm happy to ignore that for now. In effect call() can't do the
equivalent of f(1,,3).)
> call(g,concat([a,b],c))
Yes, I think that's ok. A little wordier but consistent.