Skip to main content
GameDev.net gamedev.net
✓ Solved 🔒 Locked

C++26 Reflection in AngelScript

Started by sevens77 Mar 23 at 8:32 PM 2 replies 750+ views
Original Post
sevens77
sevens77

Given that C++26, and with it reflection, seem to be approaching rather quickly, with gcc and clang having mostly functional prototypes on trunk, are there any plans to use it for AngelScript bindings? Either as first-party support or a library off to the side?

Accepted Answer

Honestly. I haven't had the time to follow up on upcoming C++ standards.

But if this is something that will allow me to better determine function signatures, and type traits automatically at compile time I'll definitely look into using it.

Thanks for bringing this to my attention.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - <a href="http://www.angelcode.com/tower" rel
sevens77
sevens77

Thinking about it, I do believe that it'd be best as a separate library, to allow for AngelScript to avoid a hard requirement of C++26 and to not have to wait on mvsc being slow to implement the standard. But, regardless, I do believe that it would provide some very interesting tools to allow for some more simplicity regarding how functions are bound, or maybe even skipping the requirement to write out all the engine->RegisterX(/*...*/) functions entirely depending on how it's done.

GCC has already posted what'll be coming to their G++ compiler on their site here, and I'm helping work on a library using a build of gcc trunk that shows off a decent bit of what it's capable of called Splice if you're interested in seeing it "in action" so to speak.

The final decision of writing it yourself is obviously up to you, but even if it gets written by the community I think it could work rather well if done correctly.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.