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 <[email protected]> wrote:
> 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 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