cpp_binder, a not-yet-useful tool for generating C++ bindings

Paul O'Neil via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Mon Sep 21 17:43:06 PDT 2015



On 09/21/2015 05:29 AM, Jacob Carlborg wrote:
> On 2015-09-21 06:22, Paul O'Neil wrote:
> 
>> I've written more about cpp_binder and my experiences at
>> http://www.todayman.net/cpp_binder-pre-announcement-and-status.html.
> 
> About the plugin architecture. I tried modifying DMD to run DStep to
> automatically generate bindings and use them directly. I announced it as
> a proof of concept [1], but the community seemed to prefer having it as
> a separate tool if I recall correctly.
> 
> [1] http://forum.dlang.org/thread/ks3kir$1ubq$1@digitalmars.com
> 

I don't like it either, but it deals with uninstantiated templates...

It also means that you can handle the curiously recurring template
pattern.  If you cant instantiate the template in the D compiler, then
you need to generate C++ code that expresses the D structure and
properly instantiates the C++ template.  The payoff here is bigger.

-- 
Paul O'Neil
Github / IRC: todayman


More information about the Digitalmars-d-announce mailing list