MathGroup Archive 1994

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: function definition


   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





  • Prev by Date: Re: a problem with an array
  • Next by Date: Re: matrix of coefficients?
  • Previous by thread: Re: function definition
  • Next by thread: RE: function definition