Re: [Vala] Libgee problem



Il giorno mer, 09/12/2009 alle 11.30 +0100, Nicolas ha scritto:

var map = new HashMap <double, double> ();

Return this error:
error: `double' is not a supported generic type argument, use `?' to box 
value types

Why libgee does not support double with hashmap?

I think using double as hash index is dangerous, because of
approximation.

Did you think about transforming the double numbers to "fixed precision
decimals" (represented by 64bit integers) or to strings?

Bye.

-- 
Alessandro Pellizzari




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