Re: in not working with enum'd AA

2012-02-27 Thread Jonathan M Davis
On Monday, February 27, 2012 18:19:59 Nathan M. Swan wrote: > On Monday, 27 February 2012 at 09:13:24 UTC, Jonathan M Davis > > wrote: > > It would be far better to use immutable. > > > > - Jonathan M Davis > > That doesn't work either, as it says: > > Error: non-constant expression > ["import"

Re: in not working with enum'd AA

2012-02-27 Thread Nathan M. Swan
On Monday, 27 February 2012 at 09:13:24 UTC, Jonathan M Davis wrote: It would be far better to use immutable. - Jonathan M Davis That doesn't work either, as it says: Error: non-constant expression ["import"d:cast(TokenType)2,"public"d:cast(TokenType)3,"protected"d:cast(TokenType)4,"

Re: in not working with enum'd AA

2012-02-27 Thread Daniel Murphy
"Nathan M. Swan" wrote in message news:jubnbnovcksfyagta...@forum.dlang.org... >I don't think this should happen: > >private enum KeywordsToTypes = [ >"import"d: TT.KwIMPORT, >"public"d: TT.KwPUBLIC, >"protected"d : TT.KwPROTECTED, >

Re: in not working with enum'd AA

2012-02-27 Thread Jonathan M Davis
On Monday, February 27, 2012 09:34:49 Nathan M. Swan wrote: > I don't think this should happen: > > private enum KeywordsToTypes = [ > "import"d: TT.KwIMPORT, > "public"d: TT.KwPUBLIC, > "protected"d : TT.KwPROTECTED, > "private"d :

in not working with enum'd AA

2012-02-27 Thread Nathan M. Swan
I don't think this should happen: private enum KeywordsToTypes = [ "import"d: TT.KwIMPORT, "public"d: TT.KwPUBLIC, "protected"d : TT.KwPROTECTED, "private"d : TT.KwPRIVATE, "static"d: TT.KwSTATIC, ]; static