Re: [Vala] casting out parameters

2010-05-26 Thread pancake
Would love to see this dynamic casting supported by the language.. Should I open a bug? - Original message - On Tue, 2010-05-25 at 11:12 +0200, pancake wrote: How can I cast an out parameter? public class Foo {} public class Bar : Foo {} void test(out Foo foo) {       foo =

Re: [Vala] casting out parameters

2010-05-26 Thread Jürg Billeter
On Wed, 2010-05-26 at 15:41 +0200, pancake wrote: Would love to see this dynamic casting supported by the language.. Should I open a bug? As Nor Jaidi Tuah wrote, the declaration of the method `test` does not guarantee that `foo` is set to an instance of `Bar`. The method could also be

Re: [Vala] vapigen problem with librest

2010-05-26 Thread Abderrahim Kitouni
Hi, في ر، 26-05-2010 عند 18:04 +0100 ، كتب Ross Burton: Hi, I'm trying to use vapigen to build Vala bindings of librest from the gobject-introspection data. However, I get an error: $ vapigen rest/Rest-0.6.gir --library=Rest --pkg=gio-unix-2.0

Re: [Vala] casting out parameters

2010-05-26 Thread pancake
Ok :) I got it! Thanks On May 26, 2010, at 7:28 PM, Jürg Billeter j...@bitron.ch wrote: On Wed, 2010-05-26 at 15:41 +0200, pancake wrote: Would love to see this dynamic casting supported by the language.. Should I open a bug? As Nor Jaidi Tuah wrote, the declaration of the method `test`