is this C style coding?
I don't seem to see much C++ code in this way.
is this a bad programming practice?
code seem ugly coding this way.
#define CATCHERROR(ptr,a) catch(_com_error &e)\
Re: coding style
"Jim Johnson" <firstname.lastname@example.org> wrote in message
: is this C style coding?
: I don't seem to see much C++ code in this way.
: is this a bad programming practice?
This is not C, but poor C++ code, relying on the preprocessor
supposedly to avoid repeating code. This is considered as
bad style and poorly maintainable; better alternatives
usually exist. However, for lack of context, it is not
possible to give you a specific recommendation.
: code seem ugly coding this way.
: #define CATCHERROR(ptr,a) catch(_com_error &e)\
: return a;\
http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form
Brainbench MVP for C++ <> http://www.brainbench.com
|All times are GMT. The time now is 09:42 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.