Jamie McCracken wrote:
In Genie we automatically determine the hash function to use based on
type (unlike vala which has to specify the hash function)
Libgee does that automatically since 0.5. At least for 'int' and
'string' it works.
http://live.gnome.org/Libgee/NewAndNoteworthy-0.5
All
Frederik wrote:
So you can do
var map = new HashMapstring ();
instead of
var map = new HashMapstring (str_hash, str_equal);
in Vala.
There must be a second type paramater, of course:
var map = new HashMapstring, int ();
___
Vala-list
Hi,
2009/12/9 Jamie McCracken jamie.mccr...@googlemail.com:
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
Am 10.12.2009 um 10:47 schrieb Abderrahim Kitouni:
Hi,
2009/12/9 Jamie McCracken jamie.mccr...@googlemail.com:
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
On Wed, 2009-12-09 at 23:13 +0100, Jiří Zárevúcky wrote:
Xavier Bestel píše v St 09. 12. 2009 v 22:42 +0100:
[...]
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
In order to make a value
Hi,
2009/12/10 Xavier Bestel xavier.bes...@free.fr:
On Wed, 2009-12-09 at 23:13 +0100, Jiří Zárevúcky wrote:
In order to make a value type nullable, you need to convert it to a
reference type. That's what you call boxing. So nullable and boxed
types are essentially the same (in C# anyway I
Hello,
I need to use libgee with double.
The problem is, :
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?
Best regards,
Nicolas.
Hi,
2009/12/9 Nicolas c.r@wanadoo.fr:
Hello,
I need to use libgee with double.
The problem is, :
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
Hi Abderrahim,
Yes i tried with a ?, it build but i got a segmentation fault !
I'll try to find another solution.
Thanks,
Nicolas.
Because vala doesn't support double in generics (the error you got).
Not sure if it would help, but did you try its suggestion to use
'double?' instead?
This is
Nicolas píše v St 09. 12. 2009 v 13:49 +0100:
Hi Abderrahim,
Yes i tried with a ?, it build but i got a segmentation fault !
I'll try to find another solution.
Could you post the code that segfaults? That's probably a bug in Vala.
signature.asc
Description: Toto je digitálně podepsaná
Gdb:
Program received signal SIGSEGV, Segmentation fault.
0x08048b75 in _main (args=0xbfbfe978, args_length1=1) at testlist.vala:14
14stdout.printf (map[key].to_string());
Vala code:
using Gee;
static int main (string[] args) {
var map = new HashMapdouble?, double? ();
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
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
Alessandro,
I'm developping a chart library, i really need double for value.
But i found the solution, i'm using a simple array of double.
Jiří,
Thank you, i'm learning programming, so sorry for the crap ! ;-)
Nicolas.
___
Vala-list mailing list
Nicolas píše v St 09. 12. 2009 v 20:10 +0100:
Jiří,
Thank you, i'm learning programming, so sorry for the crap ! ;-)
Nicolas.
In case you are just learning programming (generally speaking), you
should probably consider starting with some more mature language. There
is still a lot of
On Wed, Dec 09, 2009 at 19:16:41 +0100, Alessandro Pellizzari wrote:
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
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.
Thanks again for your
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
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
Xavier Bestel píše v St 09. 12. 2009 v 22:42 +0100:
[...]
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
In order to make a value type nullable, you need to convert it to a
reference type. That's
On Wed, 09 Dec 2009 16:04:42 -0500,
Jamie McCracken jamie.mccr...@googlemail.com wrote:
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
21 matches
Mail list logo