Re: [Vala] case/when with enum



On Thu, 2010-01-07 at 07:08 -0500, Arc Riley wrote:
error: Integer or string expression expected

on a case statement where:
  enum _message
    create
    resize
    title
    close
  _queue = new AsyncQueue of _message
  case _queue.pop()

Using case/when with enum values would seem extremely logical, was this
overlooked or is there a reason not to support it?

switch/case should be working with enum values. Can you post a full test
case?

Jürg




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