TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: PETER HAYWOOD
from: JERRY COFFIN
date: 1997-09-09 23:37:00
subject: Signs of numbers

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.