Le mercredi 09 décembre 2009 à 19:51 +0100, Jiří Zárevúcky a écrit :
> Nicolas píše v St 09. 12. 2009 v 18:24 +0100:
> > [...]
> > > Could you post the code that segfaults? That's probably a bug in Vala.
> >
>
> Thank you. That's not a Vala bug. There is a problem that you don't
> supply Map's constructor with custom hash and equality methods. In that
> case, Map will only compare references, which are different each time
> you call it. That means the values you get are always null, which leads
> to segfault because you aren't checking for nulls. See my attached
> code. :)
Excuse me, but I'm a bit lost: I thought the question mark was for
nullable types. What's the link with "boxed" types ?
Thanks,
Xav
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list