enum sstring problem

2011-06-12 Thread Lloyd Dupont
I'm using 2.053 this compile fine: enum : string { A = "hello", B = "betty", } this doesn't! enum AA : string { A = "hello", B = "betty", } Am I missing something? Named enum can't be typed? known bug?

Re: enum sstring problem

2011-06-12 Thread Timon Gehr
Lloyd Dupont wrote: > I'm using 2.053 > this compile fine: > > enum : string > { > A = "hello", > B = "betty", > } > > > this doesn't! > > enum AA : string > { > A = "hello", > B = "betty", > } > > > Am I missing something? Named enum can't be typed? known bug?

Re: enum sstring problem

2011-06-12 Thread Lloyd Dupont
do you have DMD 2.053 on Windows? Your code fail for me with: main.d(10): Error: Integer constant expression expected instead of "hello" main.d(11): Error: Integer constant expression expected instead of "betty" main.d(10): Error: Integer constant expression expected instead of "hello" main.d

Re: enum sstring problem

2011-06-12 Thread Andrej Mitrovic
I've got 2.053 and it works for me.

Re: enum sstring problem

2011-06-15 Thread Jos van Uden
Using 2.053 on win32 (XP), compiles and runs.

Re: enum sstring problem

2011-06-15 Thread Johann MacDonagh
On 6/15/2011 5:32 PM, Jos van Uden wrote: Using 2.053 on win32 (XP), compiles and runs. Ah! I found the problem. If you're using VisualD it compiles with the -g flag (add symbolic debug info), which fails: main.d(4): Error: Integer constant expression expected instead of "hello" main.d(5): E

Re: enum sstring problem

2011-06-15 Thread Johann MacDonagh
On 6/15/2011 10:11 PM, Johann MacDonagh wrote: On 6/15/2011 5:32 PM, Jos van Uden wrote: Using 2.053 on win32 (XP), compiles and runs. Ah! I found the problem. If you're using VisualD it compiles with the -g flag (add symbolic debug info), which fails: main.d(4): Error: Integer constant expre

Re: enum sstring problem

2011-06-15 Thread Lloyd Dupont
Yes indeed, I'm using Visual D Ho... good to know, thanks! :) mm.. well hopefully it'll be fixed in the next release... and I should pay a close look at the build script! "Johann MacDonagh" wrote in message news:itbp22$28l2$1...@digitalmars.com... On 6/15/2011 5:32 PM, Jos van Uden wrote: