Hello,
This is a first draft of a proposal for [[=std::interop]], a standard
annotation marking a declaration for exposure to a foreign execution
environment. There is an optional facility to build up lists of
targets. E.g. [[=std::interop("Python", "Rust")]].
It is intended for use by binding generation tools, and there is a
reference code generator with bindings generated from C++ in plain C,
JavaScript (ECMAScript in the proposal), Python and Rust. The code
generator is just example code, but the outputs would be worth looking
at if you are curious about language bindings.
I have not inquired about a proposal number, and am looking for early
feedback on the proposal.pdf first.
The proposal.pdf is here:
https://whatchamacallem.github.io/std_interop/proposal.pdf
And the website with the source code, generated code and tests is
here:
https://whatchamacallem.github.io/std_interop/index.html
Regards,
Adrian
--
Std-Proposals mailing list
Std-Proposals@lists.isocpp.org
https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals