[Vala] Bug or feature? ***sorry for incomplete first message
- From: vml arsis net
- To: vala-list gnome org
- Subject: [Vala] Bug or feature? ***sorry for incomplete first message
- Date: Thu, 14 Oct 2010 18:34:01 +0200 (CEST)
*** i accidentally pressed send, my sincere apologies for spamming
since i'm not versed in vala i'm kinda troubled with this since it differs
from any other language.
simplified example useless in real code
string s = "a";
var a = s;
if (a is string)
results in error type check expressions are not supported for compact
classes,struct and enums. "is" in any other language checks for every
type.
is there any way to get information about a if it is compact, struct or
enum? and how to get which one.
Object has get_type(), those don't have anything making var pretty
limited. it is not something terrible, but also not nice.
with regards
matjaz
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]