[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Axiom-developer] Nested functions in SPAD
From: |
Martin Rubey |
Subject: |
Re: [Axiom-developer] Nested functions in SPAD |
Date: |
10 Oct 2006 16:11:23 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
Waldek Hebisch <address@hidden> writes:
> How to correctly define nested function in algebra file? I changed
> beggining of goodCoef (in efstruc.spad.pamphlet) to the following:
Unfortunately, the compiler is quite buggy... The way I do it usually is
f: (FROM1, FROM2, FROM3) -> TO :=
(op1(#1, #2, #3);
op2(#1, #2, #3);
resultOp(#1, #2, #3))
That is, I don't use pile syntax.
#1, #2, etc. are the arguments you are going to hand to f.
Martin