Re: [Vala] [SimpleType] public struct Integer : uint {} does not work



في ر، 18-01-2012 عند 17:56 +0100 ، كتب Henrik /KaarPoSoft:
Dear all,

I am trying to create a new type in vala,
like "typedef" in C.

I have created the following file called i.vala:
<code>
[SimpleType]
public struct Integer : uint {
}
public static int main (string[] args) {return 0;}
</code>

Adding [CCode (has_type_id=false)] should let you compile your program,
but this is probably a bug that should be fixed.

HTH,
Abderrahim




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