Le dimanche 24 août 2014 à 07:31 -0700, Andreas Lobinger a écrit :
> Thank you, i did and it worked. 
> 
> I tried to find thisin the documentation and actually more than once
> it's stated that the tuple needs to be const. But it wasn't obvious
> for me that there are different flavours of the string. The error
> message could be improved (imho).
Please file an issue on GitHub, maybe it's possible to fix this.


Regards

> On Sunday, August 24, 2014 4:18:53 PM UTC+2, Isaiah wrote:
>         You probably need to declare as const
>         
>         
>         within Duktape:
>         
>         
>         `const _jl_duktape
>         = "/home/lobi/juliarepo/duktape-0.11.0/src/duktape.so"`
>         
>         
>         On Sun, Aug 24, 2014 at 10:16 AM, Andreas Lobinger
>         <[email protected]> wrote:
>                 Hello,
>                 
>                 maybe it's the weather, maybe it's a side effect, but
>                 what happens here:
>                 
>                 julia> Duktape._jl_duktape
>                 "/home/lobi/juliarepo/duktape-0.11.0/src/duktape.so"
>                 
>                 julia>
>                 
> ccall((:duk_create_heap,"/home/lobi/juliarepo/duktape-0.11.0/src/duktape.so"),Ptr{Void},())
>                 Ptr{Void} @0x0cfd5ee0
>                 
>                 julia>
>                 ccall((:duk_create_heap,Duktape._jl_duktape),Ptr{Void},())
>                 ERROR: type: anonymous: in ccall: first argument not a
>                 pointer or valid constant expression, expected
>                 DataType, got Type{(Any...,)}
>                  in anonymous at no file
>                 
>                 i remember something about that the library needs to
>                 be found somehow, but that would not explain the
>                 sucessful first call ... for me the difference is just
>                 the string as literal or as variable.
>                 
>                 
>                 
>                 
>         
>         

Reply via email to