Jacques Gélinas on Fri, 29 Dec 2017 21:55:05 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

RE: Arity transfer from built-in function ?


The arity transfer problem can be solved very simply by using "alias" instead of an assignment.

alias(vc,vector) 
vc(3,k,k) == [1,2,3]

This works both in 2.4.1 (2007-03-28) and in 2.9.3 (2017-07-04).

Jacques Gélinas

De : Jacques Gélinas <jacquesg00@hotmail.com>
Envoyé : 24 décembre 2017 19:54
À : pari-users@pari.math.u-bordeaux.fr
Objet : RE: Arity transfer from built-in function ?
  

> different calling convention
Great explanation, thanks.

>The GP compiler generates code to convert between them when possible.
Yes, I noted that "vs=vecsum" does work.


Jacques Gélinas