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)
But where's he actual question? Do you mean the following error?
test.vala:5.5-5.15: error: type check expressions not supported for
compact classes, structs, and enums if(a is string)
^^^^^^^^^^^
This is because string is mapped to C char* and does not have type
info. You can use such type checking when having objects, that is
instances of classes.
best regards,
--
Mój klucz publiczny o identyfikatorze 1024D/E12C5A4C znajduje się na
serwerze hkp://keys.gnupg.net
My public key with signature 1024D/E12C5A4C is on the server
hkp://keys.gnupg.net
Attachment:
signature.asc
Description: PGP signature