I'm having trouble figuring out how to get a function's argument types from
a macro.
Specifically, I'm playing around with calling functions that expect blocks
as arguments from Julia. I've got a simple case working, (which is
awesome) but it hard-codes knowledge of the block's signature, and I'd like
to dynamically generate that. Ideally, I'd be able to do something like:
block_struct = @block function( arg1::Float64 )
...
return foo::Int64
end
And the @block macro would be able to figure out the types of arg1 and foo.
Is such a thing possible? I need these types so that I can construct a
description of this function to pass off to the objective-c runtime,
allowing for objective-c code (And modern apple C++ code) to callback to
julia. :)
-E