On (07 Sep 97) Peter Haywood wrote to Javier Kohen...
JK> You shouldn't be using macros in C++, try inline functions
JK> instead.
PH> Forgive my ignorance (I'm into C, and only know a little about C++),
PH> but why shouldn't I use macros in C++? Doesn't C++ like macros for
PH> some reason, or is it just a matter of style?
It's mostly a matter of style. However, the majority of the time, if an
inline function will work, it's better than a macro. It will generally
eliminate the same function call overhead that a macro is usually
intended to eliminate.
Later,
Jerry.
--- PPoint 1.90
---------------
* Origin: Point Pointedly Pointless (1:128/166.5)
|