autowrap v0.0.1 - Automatically wrap existing D code for use in Python and Excel
Nikos
nikos at home.com
Sun May 13 16:23:49 UTC 2018
I'm trying to wrap drepl
(https://github.com/dlang-community/drepl)
My dub.sdl files is
>import autowrap.python;
>mixin(
> wrapAll(
> LibraryName("drepl"),
> Modules("drepl.interpreter"),
> )
>);
I also flagged `export` the interpreter function
>export Interpreter!Engine interpreter(Engine)(return scope
>Engine e) if (isEngine!Engine)
>{
> // workaround Issue 18540
> return Interpreter!Engine(() @trusted { return move(e); }());
>}
I build the library with python35, but when I import it from
python idle, I cannot access the `interpreter` function at all.
I have the feeling I miss something essential here, but I don't
know what it is.
Any ideas?
More information about the Digitalmars-d-announce
mailing list