Image

Imageataxi wrote in Imagecpp

C++ reflection: more food for thought

Haven't found any sort of solution to my interface issue as previously described yet, but I did find a facility that uses hideous macros to generate reflection classes for any appropriately declared class of your own on codeproject.com. Check it out, it's actually pretty neat.

Unfortunately this doesn't solve the general problem mentioned by someone in the comments to my last post, that the variant type arguments in the average scripting environment aren't helpful for distinguishing between overloads of a function. But if you don't have overloads I think the ideas behind it might help at least. Still haven't experimented with it.

I guess it's not that surprising that the only nearly-a-solutions out there use text processing rather than actual code to do this kind of thing "generically".