2 ms·
>Is there a C macro that can do this? No, of course. C macros only see strings; you need to parse a syntax tree to do your reverse example (like lisp macros).
by funptr 16y ago
>Is there a C macro that can do this?
No, of course. C macros only see strings; you need to parse a syntax tree to do your reverse example (like lisp macros).
No argument from me.
>Lisp's macro system allows you to create new syntax, including changes in flow control.
Well, C macros seem to be able to manipulate control flow. You can't break up an expression to do that (not smart enough to parse), but you can rearrange expressions that are given whole.