Re: [julia-users] Re: automatic export of all enum values

2016-04-26 Thread David P. Sanders
Thanks. Tricky!

Re: [julia-users] Re: automatic export of all enum values

2016-04-26 Thread Yichao Yu
On Tue, Apr 26, 2016 at 1:56 PM, David P. Sanders wrote: > > > El martes, 26 de abril de 2016, 12:13:22 (UTC-4), Steven G. Johnson > escribió: >> >> >> >> On Tuesday, April 26, 2016 at 11:07:45 AM UTC-4, Pieterjan Robbe wrote: >>> >>> Is it possible to export all values of an

[julia-users] Re: automatic export of all enum values

2016-04-26 Thread Pieterjan Robbe
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

[julia-users] Re: automatic export of all enum values

2016-04-26 Thread 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