Re: [Vala] case/when with enum
- From: Jürg Billeter <j bitron ch>
- To: Arc Riley <arcriley gmail com>
- Cc: vala-list <vala-list gnome org>
- Subject: Re: [Vala] case/when with enum
- Date: Sat, 09 Jan 2010 12:19:21 +0100
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]