[Exceptional C++ Style] Item 17 - Encapsulation
Kloss, Burkhard (IT)
Burkhard.Kloss at morganstanley.com
Mon Dec 20 08:15:25 EST 2004
Adrian,
> Three must be a reason why C and hence C++ calls
> parameterless functions with (), but it's always eluded me.
I presume it's because that allows you to distinguish between calling
the function (explicit) and taking its address (implicit).
If memory serves, &func == func. While I can see that it's a wee bit
tedious, it is more consistent with normal function usage.
Burkhard
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
More information about the Effective-cpp
mailing list