I have looked into this a bit more and referring to material on "C++ in
Action" by Milewski.
He has commented that "#define ... is a hack that can be used to bypass type
checking or type conversions-avoid it all costs".
There are several ways constants can be defined-
- old-style C #define
- type-safe global 'const'
- minumum-scope 'enum'
I mentioned macros earlier.
Herb Sutter has commented in a newsgroup that they are a glorified
text-substitution facility ...etc.In other words he is against them.
So in view that Labview is now coded in C++ it seems that using 'constants'
is a better method.
I guess the rules change as we climb the ladder.
Bill



Reply via email to