Skip to content

"Resolve type by string" feature #30

Answered by BlackMATov
innochenti asked this question in Q&A
Discussion options

You must be logged in to vote

So, we have similar functionality in this library. I call these scopes. You can think of it like regular C++ namespaces.

I've written a little example how to use it here: Scopes

Scopes provide more advanced functionality than regular type naming. Also, this approach helps to avoid ambiguities of the same names in different namespaces or typedefs.

And, of course, you can do a for-each loop over all types in a scope and bind it to a scripting language or whatever.

In addition, you can add some free-form information about types, functions, parameters, etc. The library has the ability to do this using metadata functions and types. I don't have examples of this functionality right how, but you…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BlackMATov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #18 on November 06, 2022 20:10.