c++ interop in the library (just for fun)

Timothee Cour thelastmammoth at gmail.com
Thu May 30 10:29:30 PDT 2013


We need to support different C++ name mangling schemes. Maybe a template
argument that would indicate which scheme to choose from.

Also the next step would be:
mixin(importCPP("myheader.h"));

string importCPP(string file){
auto text = import(file);
return process_text(text);
}

doesn't have to work in 100% cases, but that would be an awesome feature.

On Thu, May 30, 2013 at 7:12 AM, Martin Nowak <code at dawg.eu> wrote:

> On 05/30/2013 03:05 AM, Adam D. Ruppe wrote:
>
>> Maybe if we were to see this through it could be a good enough hack for
>> some real world use too.
>>
>
> That's really need.
> It could also allow you to access namespaces and operators.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130530/1262d8fc/attachment.html>


More information about the Digitalmars-d mailing list