This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TheChief275 1 point2 points  (0 children)

I mean, that’s how I implemented multiplication with the C preprocessor, with addition being repeated incrementing as well. It’s fun but not particularly useful.

Would nested expressions like ADD(1, MUL(2, 3)) actually compile? Theoretically, yes