I want to use the (relatively?) new docstrings, but have data structures 
that look like:

"""This is MyType."""
@auto_hash_equals type MyType
   attribute::Something
end

where the macro comes from 
https://github.com/andrewcooke/AutoTypeParameters.jl

unfortunately, this gives the error: LoadError: invalid doc expression (it 
seems that the docstring is being "applied" to the macro call, not the data 
type).

and it's not clear to me what the best solution is.  should i modify my 
macros so that they can take a string, and then move the macro to before 
the string?  or is there something i can do that will make docstrings 
understand that it should be applied after the macro?

thanks,
andrew


Reply via email to