Thread overview
enum and version()
Mar 17, 2004
Vathix
Mar 27, 2004
Walter
Mar 27, 2004
Ant
March 17, 2004
If we could use ; in enum, would it easily allow version()?


enum Foo
{
   a, b, c;

   version(Speshul)
      d = 9, e, f;
   else
      d = 11, e, f;

   g = 40, h, i,
}


-- 
Christopher E. Miller
March 27, 2004
"Vathix" <vathix@dprogramming.com> wrote in message news:c3a3ir$2ngm$1@digitaldaemon.com...
> If we could use ; in enum, would it easily allow version()?
>
>
> enum Foo
> {
>     a, b, c;
>
>     version(Speshul)
>        d = 9, e, f;
>     else
>        d = 11, e, f;
>
>     g = 40, h, i,
> }

Currently, that is not allowed.


March 27, 2004
On Fri, 26 Mar 2004 21:42:04 -0800, Walter wrote:

> 
> "Vathix" <vathix@dprogramming.com> wrote in message news:c3a3ir$2ngm$1@digitaldaemon.com...
>> If we could use ; in enum, would it easily allow version()?
>>
>>
>> enum Foo
>> {
>>     a, b, c;
>>
>>     version(Speshul)
>>        d = 9, e, f;
>>     else
>>        d = 11, e, f;
>>
>>     g = 40, h, i,
>> }
> 
> Currently, that is not allowed.

Yes, we know that ;)

but, is it planed?

this is a suggestion.

(I was about to post the same suggestion the day (and hour)
Vathix posted this)

Ant