On Sat, Dec 5, 2015 at 5:26 AM, Robert Mudyn <[email protected]> wrote: > Hello, > > I've been working for a while on my project that which GUI application for > my Julia module. > I stuck at the point, when I need to invoke it. I been searching around for > some helpful information about my problem, but without success. > > I've been able to workaround issue with loading modules: > jl_eval_string("include(\"module.jl\")"); > jl_value_t* mod = jl_eval_string(module_name); > jl_value_t* mod2 = jl_eval_string(module_in_module); > > And it seems to be fine (at least there are some data). > However now my problem is, that I cannot create type in that module. I've > tried several functions without success. > I've tried something like: > jl_new_struct(func2, argument); > or > jl_call1(func2, argument); > or even normal > jl_eval_string("type(argument)"); > None seems to work for me.
Evaluate normal julia source code or use `jl_new_datatype` https://github.com/JuliaLang/julia/blob/a4f2e2ec0b1cf2dbc59a134b08c2c2f49e5498b1/src/jltypes.c#L3260 https://github.com/JuliaLang/julia/blob/a4f2e2ec0b1cf2dbc59a134b08c2c2f49e5498b1/src/julia.h#L979 > > It's crucial part in my application. > I've hope, that someone will be able to help me. > > Best wishes, > Robert.
