On Mon, 2009-11-02 at 21:16 +0100, Frederik wrote:
> They are type definitions. I don't think this is what you meant.
> 
>   struct MyStruct {
>       // ...
>   }
> 
>   ...
>   MyStruct my_struct = ...
> 
> 
> I think you wanted to define a variable of an anonymous struct/enum type
> (i.e. without naming the type). This is possible with C and C++ but not
> with Vala, Java and C#.

Well, why is it not going to be implemented in Vala?

> The type of an enum value (item) is the enum type itself:
> 
> enum MyEnum {
>     A,
>     B
> }
> 
> ...
> MyEnum item = MyEnum.A;

So I was wrong. Thanks for letting me know.

-- 
Best regards,
Wolter Hellmund

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to