Boost logo

Boost :

From: Arkadiy Vertleyb (vertleyb_at_[hidden])
Date: 2005-07-14 16:33:08


"Paul Mensonides" <pmenso57_at_[hidden]> wrote in message

> I'm against just about anything that attempts to make a macro invocation
look
> more like regular code. This is nothing but a workaround for an editor
(of all
> things).

So what's wrong with a workaround for an editor?

> The macro invocation is not a declaration, it does not fit into the
> syntax model of C++, and it should not be made to look like it
does--regardless
> of what it expands to.

Aren't most macros used to expand into a legal c++ code fragment
([meta]function call, class/template definition, etc.)? As such, why
shouldn't they be designed to fit nicely into the c++ syntax? Otherwise
macros are inconvenient to use, and this is just one more argument for those
who claim macros should be avoided at any cost.

Regards,
Arkadiy


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk