Re: function definition
- To: mathgroup at christensen.cybernetics.net
- Subject: Re: function definition
- From: Mark E. Kotanchek <mek at guinan.arl.psu.edu>
- Date: Sun, 23 Oct 94 17:06:21 -0400
I would call this a bug. Since f[x_] and f[y_] represent exactly the same patterns, I don't see any reason for Mma to keep both definitions ... ? Anyone's got some viewpoints on this? Lars M. Johansen Although I have many problems with Mma, this is one of the more minor ones. Essentially, you're asking for automatic garbage collection -- which should be pretty easy. This problem can be handled relatively easily by doing a Remove[f2] to reset the definitions. I learned the hard way that I needed to incorporate an initial Remove[] of all variables and functions whenever I was developing a package. Such a habit helps to reduce the hate and discontent which Mma can generate. It allows you to change the function definitions with some impunity. Mark. --- Mark Kotanchek Signal Processing Dept - 363 ASB Applied Research Lab/Penn State P.O. Box 30 State College, PA 16804 e-mail: kotanchek at psu.edu (NeXTmail) TEL: (814)863-0682 FAX: (814)863-0753