Subject: Question about new implimentation of kill
From: C Y
Date: Mon, 4 Apr 2005 22:56:42 -0700 (PDT)
If I'm understanding this correctly, kill now refuses to kill any
symbol not defined by the user? In general this is good, but I have a
specific instance (the proposed post_eval_functions list) where I would
like kill to reset the value of this variable to an empty list (this
would, I think, be the "expected" end user behavior.) Is this
possible? Or, less ideal but possibly still workable, is it possible
to at least expose $post_eval_functions to kill despite its being
defined at compile time, via some explicit instruction? Here's what
I'm seeing now:
(%i1) f(x) := x^2;
2
(%o1) f(x) := x
(%i2) post_eval_functions : [f];
2
(%o2) [f ]
(%i3) kill(all);
(%o0) f(done)
(%i1) kill(post_eval_functions);
Warning: Illegal `remvalue' attempt:
post_eval_functions
(%o1) f(done)
Clearly, the assignment of post_eval_functions to [f] has survived,
which I don't think would be expected.
CY
__________________________________
Do you Yahoo!?
Make Yahoo! your home page
http://www.yahoo.com/r/hs