Re: [Vala] vapi for the Bullet Physics Engine

2010-11-28 Thread Bob Hazard
Thanks for this. I have heard great things about libbullet. I believe it is even used by professional PS3 devs in commercial games -- Sent from my Amiga ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

[Vala] Ternary operator and nullable values in return statements

2010-11-28 Thread Dru Moore
Hi all, Was surprised to see the following fail to compile with an error: Incompatible expressions in Vala 0.10.0 (simplified test case to illustrate): public static int main (string[] args) { int? x = test (12); return 0; } public int? test (int number) { return (0 == number) ? null : 1;

Re: [Vala] Ternary operator and nullable values in return statements

2010-11-28 Thread Jiří Zárevúcky
Dru Moore píše v Ne 28. 11. 2010 v 18:22 +: Hi all, Was surprised to see the following fail to compile with an error: Incompatible expressions in Vala 0.10.0 (simplified test case to illustrate): public static int main (string[] args) { int? x = test (12); return 0; } public

Re: [Vala] Ternary operator and nullable values in return statements

2010-11-28 Thread Dru Moore
2010/11/28 Jiří Zárevúcky zarevucky.j...@gmail.com: You need to cast it like this:  (0 == number) ? null : (int?) 1 or  int? i = 1;  (0 == number) ? null : i Thank you. That's it of course. cheers ___ vala-list mailing list vala-list@gnome.org

Re: [Vala] DBus and Zeitgeist namespaces

2010-11-28 Thread aug dawg
I tried it and it worked. Thank yo both for your help. On Sat, Nov 27, 2010 at 8:09 PM, Frederik scumm_fr...@gmx.net wrote: On 11/27/2010 04:20 PM, aug dawg wrote: I recently installed the DBus Vala bindings You should prefer GDBus now. It's part of GIO = 2.26 and its classes are inside