[julia-users] Type Parameter Tags, Constructor Generators, and Lazy Loading, oh my!

2013-12-19 Thread Jacob Quinn
I've been playing around with some code that uses abstract types as parameter tags (think Ptr{Void}, Ptr{Int64}, etc.), and more recently using a hierarchy of abstract tag types. The other hurdle in what I'm trying to do is the use of external data files that need to be loaded and used in the

[julia-users] Type Parameter Tags, Constructor Generators, and Lazy Loading, oh my!

2013-12-19 Thread Toivo Henningsson
This is quite similar to the staged functions macro that Jeff posted a long time ago. I used a similar technique in broadcast.jl to generate specialized broadcast functions on demand. I agree with Stefan that you could get rid of the second eval, though. Use cases for staged functions seem to