PNachtwey
Electrical
- Oct 9, 2004
- 775
I am a long time Mathcad and C programmer. In C one includes header files. Since many header files are often included, it is possible that a variable or function has been defined before so there is a test to see if the variable has been defined before, so it doesn't get redefined.
In Mathcad I often use the ability to include other mathcad files. What I need is a way to test if a variable has been defined before so it is not redefined
In short, Mathcad has no
#ifdef
#endif
feature like C or C++ have that I can see.
I have been using Mathcad since Mathcad 3 or about 30 years.
I am shocked that I haven't noticed this before.
I have about 1000+ Mathcad files and was starting to "clean them up" when I came across this problem. So many have Bode plots with common code or Pole Zero plots that are the same with only the variables being different.
Peter Nachtwey
Delta Computer Systems
IFPS Hall of Fame Member
In Mathcad I often use the ability to include other mathcad files. What I need is a way to test if a variable has been defined before so it is not redefined
In short, Mathcad has no
#ifdef
#endif
feature like C or C++ have that I can see.
I have been using Mathcad since Mathcad 3 or about 30 years.
I am shocked that I haven't noticed this before.
I have about 1000+ Mathcad files and was starting to "clean them up" when I came across this problem. So many have Bode plots with common code or Pole Zero plots that are the same with only the variables being different.
Peter Nachtwey
Delta Computer Systems
IFPS Hall of Fame Member