[Fwd: Testsuite interaction: kill does not kill compiled functions]
Subject: [Fwd: Testsuite interaction: kill does not kill compiled functions]
From: James Amundson
Date: 01 Oct 2002 09:59:12 -0500
-----Forwarded Message-----
From: CRTS" <David.Billinghurst at riotinto>
To: amundson@fnal.gov
Subject: Testsuite interaction: kill does not kill compiled functions
Date: 01 Oct 2002 09:26:00 +1000
Jim,
Can you post this to the maxima list. My attempts are failing.
-----Original Message-----
From: CRTS
Sent: Monday, 30 September 2002 5:27
To: maxima@www.ma.utexas.edu
Subject: Testsuite interaction: kill does not kill compiled functions
I have followed up on some of the testsuite issues.
The first problem occurs because kill doesn't kill a
compiled function. If the function is redefined then it
is killed. I see similar behaviour with gcl/windows and
clisp/cygwin.
Should kill(f) remove a compiled function f?
(C1) f(x):=x+2;
(D1) f(x) := x + 2
(C2) f(2);
(D2) 4
(C3) compile(f);
Compiling gazonk0.lsp.
End of Pass 1.
End of Pass 2.
OPTIMIZE levels: Safety=2, Space=2, Speed=2
Finished compiling gazonk0.lsp.
(D3) [f]
(C4) f(2);
(D4) 4
(C5) kill(f);
(D5) DONE
(C6) f(2);
(D6) 4
(C7) remfunction(f);
(D7) [f]
(C8) f(2);
(D8) 4
(C9) f(x):=x+3;
(D9) f(x) := x + 3
(C10) f(2);
(D10) 5
(C11) kill(f);
(D11) DONE
(C12) f(2);
(D12) f(2)