Ahh ok, thanks for the tips. I should have known I was trying to be a bit too tricky...
On Friday, June 13, 2014 8:27:28 PM UTC-5, Steven G. Johnson wrote: > > Yes, eval defines things in the top-level scope, so you normally don't use > it inside functions. > > However, cfunction inherently does not work with anonymous functions, > essentially because C functions can't represent closures. > > To pass closures (anonymous/inner functions) to C, you'll want to use a > different technique. See: > > http://julialang.org/blog/2013/05/callback/ > > for an overview. >
