20 Nov
2015
20 Nov
'15
6:32 p.m.
Ben Pope wrote:
is there any overlap with the reflection proposals from SG7, at least from an API point of view?
There could be some similarity. For example, the library could provide an enum facility like this: enum_ e("a", 1, "b", "c"); assert(e.size() == 3); assert(e.get("a") == 1); assert(e.get(1) == 2); There's no need for enum_traits or enumerators, since we have the object e. Regarding class_traits, the LLVM code representation is approximately a platform independent assembly language. So, no inheritance, virtual functions, or templates. That's why I chose to create an EDSL for a C-like language. class_members could be relevant, though. -Andy