Pre-SIP: Export Macros

Which completely defeats the point.

Think auto-generated implementations of some IDL…

This sounds interesting. So you could have something like “template expansion” at least as a separate (pre)build step.

This goes in the direction of what I’ve just added as an idea to my previous post.

If this wouldn’t require build setup but be a compiler feature we would be almost there I guess.