One other observation is that the AST contains file/line number information for blocks defined within it.
Not sure how the backtrace and the AST annotations are intended to interact. On Monday, June 8, 2015 at 8:47:18 AM UTC-4, Tom Breloff wrote: > > I'm sure this won't work in every case, but depending on your usage you > could model after the hack at the beginning of this file: > https://github.com/joshday/OnlineStats.jl/blob/master/src/log.jl > > On Saturday, June 6, 2015 at 4:46:44 AM UTC-4, Scott Jones wrote: >> >> I have been trying to find out some way in Julia of getting information >> about what the current file name & line number is, and also the containing >> module(s), >> method or type, etc., in a macro. >> I'd looked to see if there was anything like __LINE__, but I wasn't able >> to find anything similar so far... >> >> Thanks, Scott >> >
