Re: Emulating enums

2013-08-01 Thread JS
On Thursday, 1 August 2013 at 16:36:34 UTC, Ali Çehreli wrote: On 08/01/2013 03:29 AM, JS wrote: > On Thursday, 1 August 2013 at 05:22:46 UTC, Ali Çehreli wrote: >> On 07/31/2013 06:10 PM, JS wrote: >>> http://dpaste.dzfl.pl/dbb40dbc >>> >>> The code was pared down from a lot of string mixin cod

Re: Emulating enums

2013-08-01 Thread JS
On Thursday, 1 August 2013 at 16:36:34 UTC, Ali Çehreli wrote: On 08/01/2013 03:29 AM, JS wrote: > On Thursday, 1 August 2013 at 05:22:46 UTC, Ali Çehreli wrote: >> On 07/31/2013 06:10 PM, JS wrote: >>> http://dpaste.dzfl.pl/dbb40dbc >>> >>> The code was pared down from a lot of string mixin cod

Re: Emulating enums

2013-08-01 Thread Ali Çehreli
On 08/01/2013 03:29 AM, JS wrote: > On Thursday, 1 August 2013 at 05:22:46 UTC, Ali Çehreli wrote: >> On 07/31/2013 06:10 PM, JS wrote: >>> http://dpaste.dzfl.pl/dbb40dbc >>> >>> The code was pared down from a lot of string mixin code generation. I >>> nest the structs because I want a nested enu

Re: Emulating enums

2013-08-01 Thread JS
On Thursday, 1 August 2013 at 05:22:46 UTC, Ali Çehreli wrote: On 07/31/2013 06:10 PM, JS wrote: http://dpaste.dzfl.pl/dbb40dbc The code was pared down from a lot of string mixin code generation. I nest the structs because I want a nested enums. I don't want have to have eState and eStateTyp

Re: Emulating enums

2013-07-31 Thread Ali Çehreli
On 07/31/2013 06:10 PM, JS wrote: http://dpaste.dzfl.pl/dbb40dbc The code was pared down from a lot of string mixin code generation. I nest the structs because I want a nested enums. I don't want have to have eState and eStateType but eState and eState.Type. Having the ability to nest enums wou

Emulating enums

2013-07-31 Thread JS
http://dpaste.dzfl.pl/dbb40dbc The code was pared down from a lot of string mixin code generation. I nest the structs because I want a nested enums. I don't want have to have eState and eStateType but eState and eState.Type. Having the ability to nest enums would solve my problem. Regardles