nice solution, thanks!

Op dinsdag 26 april 2016 18:13:22 UTC+2 schreef Steven G. Johnson:
>
>
>
> On Tuesday, April 26, 2016 at 11:07:45 AM UTC-4, Pieterjan Robbe wrote:
>>
>> Is it possible to export all values of an an enum defined inside a module?
>> That is, without rewriting all values after 'export'.
>>
>
> for s in instances(WindDirection)
>
>     @eval export $(symbol(s))
> end 
>

Reply via email to