[julia-users] Re: Confused about doc strings and macros

2015-10-31 Thread andrew cooke
hi, thanks. you're absolutely right - the error is there (i just wrote a long message saying it wasn't, and then had to delete it, because it plainly is - i am not sure how i missed it). i'll do what you suggest. thanks again, andrew On Saturday, 31 October 2015 11:19:33 UTC-3, Michael

Re: [julia-users] Re: Confused about doc strings and macros

2015-10-31 Thread Mauro
Have a look at: https://github.com/JuliaLang/julia/pull/13006 I'm not sure it has been backported yet to 0.4 On Sat, 2015-10-31 at 14:55, andrew cooke wrote: > gah, sorry. linked to the wrong macro package. i don't think this is > particularly relevant, but it should have

[julia-users] Re: Confused about doc strings and macros

2015-10-31 Thread andrew cooke
gah, sorry. linked to the wrong macro package. i don't think this is particularly relevant, but it should have been https://github.com/andrewcooke/AutoHashEquals.jl On Saturday, 31 October 2015 10:53:39 UTC-3, andrew cooke wrote: > > > I want to use the (relatively?) new docstrings, but have

[julia-users] Re: Confused about doc strings and macros

2015-10-31 Thread Michael Hatherly
For user-defined macros you need to make use of Base.@__doc__ to mark the subexpression returned by your macro that should be documented. In this case it’s probably the Expr(:type, ...) that the docstring should be attached to rather than the subsequent method definitions. So replacing the