Am 10.12.2009 um 10:47 schrieb Abderrahim Kitouni: > Hi, > > 2009/12/9 Jamie McCracken <[email protected]>: >> On Wed, 2009-12-09 at 20:50 +0100, Nicolas wrote: >>> In fact, i'm using genie, because i love the syntax. >>> I making all the available examples in >>> http://code.valaide.org/category/tags/genie >>> >>> But the problem i encountering here, i can encounter it with other >>> languages, because i don't know about the programming techniques. >> >> In Genie we automatically determine the hash function to use based on >> type (unlike vala which has to specify the hash function) >> >> We currently only support string, int and objects/pointers as the key >> part of the dict and I believe it will default to g_direct in case of a >> Double which is likely the cause of your problems >> >> Does anyone know what the correct hash function is for doubles in glib? > > it's g_double_{hash,equal}, but they are only available since 2.22. > (and not bound in vala;-)). It may be too early to depend on them
That's not a problem, we can add stuff to Vapi conditionally -- e.g. all the new network IO stuff in gio depends on 2.22 as well. :M: _______________________________________________ Vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
