[Vala] async method and delegate

2011-06-19 Thread Nor Jaidi Tuah
valac version: 0.13.0 When an async method accepts a delegate as its argument, I get the warning "copying delegates is discouraged". Is this intended? I also get segmentation fault trying to pass a closure accessing local variables. The closure works if it doesn't access local vars. e.g., var

[Vala] Initializing structs inside an object

2011-06-19 Thread Chris Molozian
Hey, Not sure what I'm doing wrong here: [indent=4] init var options = new Options() print options.version return class Options : Object prop readonly version : bool const _options : array of OptionE

[Vala] How to duplicate the vala documentation locally, using Valadoc

2011-06-19 Thread Serge Hulne
Hi, I have tried to guess from the man page and the help of valadoc how to generate documentation from vala sources. What I would like to do is to recreate locally the complete documentation of Vala so as to be able to access it faster than trough the web page: http://www.valadoc.org/references.

Re: [Vala] [Genie] GLib Command Parsing

2011-06-19 Thread Chris Molozian
Ok that works, thanks for the help. Could you explain why I can't define an array of OptionEntry objects in the scope of init? Cheers, Chris On 06/19/11 10:23, Nicolas wrote: Hi Chris, Try this: [indent=4] version : bool = false const my_options : array of OptionEntry = {{"version", 'V',

Re: [Vala] [Genie] GLib Command Parsing

2011-06-19 Thread Nicolas
Hi Chris, Try this: [indent=4] version : bool = false const my_options : array of OptionEntry = {{"version", 'V', 0, OptionArg.NONE, ref version, "Show application's version", null}, {null}} init print "Hello" See you, Nicolas. ___ vala-list m

Re: [Vala] Adding support for C++

2011-06-19 Thread Luca Bruno
Adding c++ and objc support would be helpful in some cases to interact with third-party libraries (say for example xapian) that have no C API. The difference with maja (a vala to javascript compiler) is that while maja is only a few lines of code and it's implemented from scratch, it wouldn't be th