working on the GeometricPredicates package, I want to generate a few mostly similar types like this:
macro mymac(name) n = name.args[1] quote type $n x::Int64 $n(num::Int64) = new(num) end end end @mymac(:mynewtype) println(mynewtype) It raises an error (mynewtype is undefined) unless I comment out the inner constructor. Is this a bug? I couldn't find anything similar in the mailing lists any thoughts? Thanks!