Re: [Vala] Switch statement on GType.
- From: Yu Feng <rainwoodman gmail com>
- To: Sam Danielson <samdanielson gmail com>
- Cc: Vala ML <vala-list gnome org>
- Subject: Re: [Vala] Switch statement on GType.
- Date: Tue, 23 Jun 2009 09:58:39 +0800
On Sat, 2009-06-20 at 09:34 -0700, Sam Danielson wrote:
Under Vala 0.6 the following worked.
switch (tree_store.get_column_type (n)) {
case typeof(string):
...
break;
}
In Vala 0.7 it does not -- error: Integer or string expression expected.
Should it actually be 'error: Integer or string literal expected.'?
But GLib.Type derives from ulong so this seems to violate the Liskov
substitution principle. Is this a bug or desired behavior?
-Sam Danielson
_______________________________________________
Vala-list mailing list
Vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]