Re: [Vala] box array does not work



but the message sya that I have to box it.

Can you explain me why I cannot box an array?



2014-07-18 11:57 GMT+02:00 Luca Bruno <lethalman88 gmail com>:

On 18/07/2014 11:51, Michele Dionisio wrote:
Hi all,

I try to defive an object like:

Gee.TreeMap< uint8[] ?, FileInformation >

where FileInformation is class.

I have boxed uint8[] with ?

but I receive fro valac 0.24 the following error

error: `uint8[]?' is not a supported generic type argument, use `?' to
box
value types

I think that it is a valac bug. Is it true?
Not a bug, it's a valac error because you cannot box an array. Just what
the messages says.
_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list



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