Re: [Vala] Strange Map behaviour in Gee



Magnus Therning wrote:
2009/9/23 Matías De la Puente <mfpuente ar gmail com>:
Take a look here
http://live.gnome.org/Vala/Tutorial#head-7b3930bf3573a66028940bf6123b19e19a33f9a5

should be:
var map = new HashMap<string, string> (str_hash, str_equal);

Bugger, yes you are right.  I'm such an idiot at times ;-)

Starting with the 0.5 version (expected to be release at the end of the week), you won't be forced anymore to provide functions to the implementations almost for (non-boxed) primitive types, strings, and objects. Also in 0.5, a Comparable interface is provided for those who wants to implement order amongst the instance of a class.

Best, regards.




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