Re: Extend Enum

2012-01-23 Thread Ali Çehreli
On 01/23/2012 04:04 PM, Mars wrote: On Monday, 23 January 2012 at 22:48:02 UTC, Ali Çehreli wrote: If it makes sense, you can use version(x) blocks within the single enum definition, as opposed to putting version(x) outside. Could you give me an example, what that would look like? So far I coul

Re: Extend Enum

2012-01-23 Thread Mars
On Monday, 23 January 2012 at 22:48:02 UTC, Ali Çehreli wrote: If it makes sense, you can use version(x) blocks within the single enum definition, as opposed to putting version(x) outside. Could you give me an example, what that would look like? So far I couldn't find a way to use version insid

Re: Extend Enum

2012-01-23 Thread Ali Çehreli
On 01/23/2012 02:38 PM, Mars wrote: Hello everybody. I'd like to know if there's a way, to extend an Enum, based on version(). I have an Enum, that holds various values, but some are different, in other versions. So the alternative would be to define the Enum several times. version(x) { enum ex

Extend Enum

2012-01-23 Thread Mars
Hello everybody. I'd like to know if there's a way, to extend an Enum, based on version(). I have an Enum, that holds various values, but some are different, in other versions. So the alternative would be to define the Enum several times. version(x) { enum example { FOO = 1, BAR = 2, } } e