On Tue, Aug 2, 2016 at 12:43 PM Yichao Yu <yyc1...@gmail.com> wrote: > > Arguments needs to be rooted if you are doing it this way. > You can also just create an uninitialized box and populated the fields > like a normal struct. >
OK, thanks, I used that method now, indeed I forgot to root the arguments, thanks! > A value is a value, the compiler/runtime doesn't care how it is created. > > So if in the REPL I do something like a = make_tuple(...) then a doesn't actually refer to the jl_value_t* but it refers to a tuple with the given values (or a copy)? I'm just trying to understand how C structs like jl_value_t interact with the LLVM compiler.