On 4/26/2020 2:44 PM, Riccardo Vianello wrote:
...
as far as I know, this isn't (or at least wasn't) directly possible. SWIG
includes the core functionality required to generate these wrappers, but C
is not a supported target language. Last time I checked a mostly functional
but not ready to merge GSoC branch existed, that was aimed at providing
this feature, but I am not sure it made any progress.

Like Greg said, C does not have objects. It also lacks method overriding, and a few other things. While objects are trivial to emulate using structs w/ pointers to functions, I doubt an automated rewrite can do even that well enough. (E.g. if you want name mangling that makes sense.)

Once you run into more advanced use of templates: forget it.

Dima


_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to