Hi Tim,
Will P0194 be extended to support lambdas, and specifically reflecting on the number and type of lambda captures?
Reflecting on lambda captures is critically important in the case of implementing a garbage collector on top of standard C++, without hardcoding knowledge of memory layout or other things.
Wow, super-interesting. I'd love to see a CppCon talk on that, to
better understand that idea.
And while P0194 excludes lambdas, its follow-up paper P0670 includes them and will appear in LEWG + EWG for the next C++ standards meeting, i.e. it's on track to catch up with P0194.
Could you check whether it does what you need?
Cheers, Axel.
--
You received this message because you are subscribed to the Google Groups "SG 7 - Reflection" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reflection+...@isocpp.org.
To post to this group, send email to refle...@isocpp.org.
Visit this group at https://groups.google.com/a/isocpp.org/group/reflection/.
For more options, visit https://groups.google.com/a/isocpp.org/d/optout.
Excellent, thanks, Tim!
Now - did I overlook your promise to submit an abstract on your
GC to CppCon? ;-)
Cheers, Axel.
Thanks for P0670! Its coverage of static reflection on functions and lambdas in particular looks like exactly what's needed for exposing lambda captures to a garbage collector.
As an aside, I agree with the importance of exposing function parameter names. These will all be important in doc tools, RPC frameworks, and marshalling from scripting languages built on C++ reflection.