Re: [Vala] enums



On Thu, Nov 08, 2007 at 08:43:21PM +0100, J?rg Billeter wrote:

On Thu, 2007-11-08 at 14:40 +0100, pancake wrote:
It is not possible to define an enum inside a class definition?

public class Foo.Bar
{
        enum Constants {
                OK       = 0,
                ERROR    = 1,
                INTERNAL = 2
        }
       ...

That's just not implemented yet, we'll add support for this.

Great!



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]