While mucking about with how to do some GUI stuff for Julia on OSX, while I was having issues with ObjectiveC.jl, I've managed, somehow bending metaprogramming to my will, to come up with a macro version of objc_msgSend() with multiple args that doesnt rely on ccal(), and should produce a ccall() with no runtime overhead.
Maybe ObjectiveC.jl can benefit from this voodoo.
Its curious to note that
UP = (P...,U...)
ccallTypes = parse("$UP")
works in the REPL, if U,P are set to the appropriate datatype-tuples, and produce the same s-expr as
While mucking about with how to do some GUI stuff for Julia on OSX, while I was having issues with ObjectiveC.jl, I've managed, somehow bending metaprogramming to my will, to come up with a macro version of objc_msgSend() with multiple args that doesnt rely on ccal(), and should produce a ccall() with no runtime overhead.
Maybe ObjectiveC.jl can benefit from this voodoo.
Its curious to note that
works in the REPL, if U,P are set to the appropriate datatype-tuples, and produce the same s-expr as
but not when put in the body of the macro, which generates a useless error.
Alas, this works:
usage like so: