[Vala] (u)int64 properties

2008-07-15 Thread Christian Hergert
Hi, I noticed that when int64 properties are installed, g_param_spec_pointer is used. I created a bug and attached a patch. http://bugzilla.gnome.org/show_bug.cgi?id=543055 Thanks! -- Christian ___ Vala-list mailing list Vala-list@gnome.org http://mai

Re: [Vala] Problem with get_table and free_table in sqlite binding

2008-07-15 Thread Matías De la Puente
Ok, I Fix the bug!! Change get_table and free_table of sqlite3.vapi with this: [NoArrayLength] public int get_table (string sql, out weak string[] resultp, out int nrow, out int ncolumn, out weak string errmsg); [NoArrayLength] public static void free_table (string[] result); Remember to use nro

Re: [Vala] Putting vala in samba4

2008-07-15 Thread Sam Liddicott
* Sam Liddicott wrote, On 15/07/08 13:03: > So the simple question has arisen, how strick id the _***Class struct, > can an existing type safely be used instead of a new type being defined? tsk tsk, I meant to say: How strict is the *Class struct that holds virtual methods? Technically, does it ha

Re: [Vala] Putting vala in samba4

2008-07-15 Thread Sam Liddicott
* Jürg Billeter wrote, On 15/07/08 11:47: > On Tue, 2008-07-15 at 07:55 +0100, Sam Liddicott wrote: > > ... >> The first struct I intend to wrap is struct ntvfs_ops, as that struct >> define my base object; see: >> http://gitweb.samba.org/?p=samba.git;a=blob;f=source/ntvfs/ntvfs.h;h=5de8a8b649

Re: [Vala] anonymous functions

2008-07-15 Thread Sam Liddicott
* Jürg Billeter wrote, On 15/07/08 12:13: > On Tue, 2008-07-15 at 11:11 +0100, Sam Liddicott wrote: > >> * Ali Sabil wrote, On 15/07/08 10:47: >> >>> Signal handler always have the "signal sender" as 1st parameter, in >>> this case it would be the AdvancedSample instance from which the >>>

Re: [Vala] anonymous functions

2008-07-15 Thread Jürg Billeter
On Tue, 2008-07-15 at 11:11 +0100, Sam Liddicott wrote: > * Ali Sabil wrote, On 15/07/08 10:47: > > > > Signal handler always have the "signal sender" as 1st parameter, in > > this case it would be the AdvancedSample instance from which the > > "foo" signal originated. > > > > I proposed the "se

Re: [Vala] evangelise talloc for vala memory management

2008-07-15 Thread Jürg Billeter
On Tue, 2008-07-15 at 11:05 +0100, Sam Liddicott wrote: > The reference counting that "vala" supports is only for gobject; which > is fine, but the glib vapi file shows that this is done by the vapi > file and not by vala as such. > > [CCode (ref_function = "g_object_ref", unref_function = > "g_ob

Re: [Vala] Putting vala in samba4

2008-07-15 Thread Jürg Billeter
On Tue, 2008-07-15 at 07:55 +0100, Sam Liddicott wrote: > I've been writing a VFS module for Samba4 for the last 9 months, and I'd > like to start migrating the work to Vala, because I'd rather use Vala to > write my work in. Sounds interesting. > First: Samba makes heavy use of unions, which

Re: [Vala] anonymous functions

2008-07-15 Thread Sam Liddicott
* Ali Sabil wrote, On 15/07/08 10:47: > > > 2008/7/15 Sam Liddicott <[EMAIL PROTECTED] >: > > * Jared Moore wrote, On 15/07/08 10:40: >> >>> And in the advanced example: >>> http://live.gnome.org/Vala/AdvancedSample >>> >>> >>> what does the s signify in >>

Re: [Vala] [ ] directives in vala

2008-07-15 Thread Sam Liddicott
* gege2061 wrote, On 15/07/08 10:49: > Hello, > > You could see the Hacker's guide : > http://www.lesharris.com/vala-hackers-guide/hackers.html > Thanks; I wondered where that had moved to. The http://rodney.id.au/dev/vala/hackers.html link on http://live.gnome.org/Vala is bad. Sam _

Re: [Vala] evangelise talloc for vala memory management

2008-07-15 Thread Sam Liddicott
I've re-read the vala docs on weak references and ownership transfer: http://live.gnome.org/Vala/Tutorial#head-e667accbcd04f19dd6a2c14a68e22b3cc2179e58 The reference counting that "vala" supports is only for gobject; which is fine, but the glib vapi file shows that this is done by the vapi file an

Re: [Vala] [ ] directives in vala

2008-07-15 Thread gege2061
Hello, You could see the Hacker's guide : http://www.lesharris.com/vala-hackers-guide/hackers.html 2008/7/15 Sam Liddicott <[EMAIL PROTECTED]>: > Where can I learn about [ ] directives in vala; like [Notify] which > seems very interesting, and all the rest. > > Most of the vala documentation cove

Re: [Vala] anonymous functions

2008-07-15 Thread Ali Sabil
2008/7/15 Sam Liddicott <[EMAIL PROTECTED]>: > * Jared Moore wrote, On 15/07/08 10:40: > > > And in the advanced example:http://live.gnome.org/Vala/AdvancedSample > > > what does the s signify in > >this.foo += s => { >stdout.printf ("Lambda expression %s!\n", name); >

Re: [Vala] anonymous functions

2008-07-15 Thread Thijs Vermeir
Sam Liddicott wrote: * Jared Moore wrote, On 15/07/08 10:40: And in the advanced example: http://live.gnome.org/Vala/AdvancedSample what does the s signify in this.foo += s => { stdout.printf ("Lambda expression %s!\n", name); }; 's' is the formal parameter

Re: [Vala] anonymous functions

2008-07-15 Thread Sam Liddicott
* Jared Moore wrote, On 15/07/08 10:40: > >> And in the advanced example: >> http://live.gnome.org/Vala/AdvancedSample >> >> >> what does the s signify in >> >>this.foo += s => { >>stdout.printf ("Lambda expression %s!\n", name); >>}; >> >> > > 's' is the formal par

Re: [Vala] [ ] directives in vala

2008-07-15 Thread Jared Moore
I don't think there is complete documentation anywhere at the moment, since attributes are currently being added and changed quite regularly. The best reference is the compiler source code. Jared On Tue, Jul 15, 2008 at 7:17 PM, Sam Liddicott <[EMAIL PROTECTED]> wrote: > Where can I learn about [

Re: [Vala] anonymous functions

2008-07-15 Thread Jared Moore
On Tue, Jul 15, 2008 at 7:20 PM, Sam Liddicott <[EMAIL PROTECTED]> wrote: > * Sam Liddicott wrote, On 15/07/08 10:15: >> I find this notation ugly: >> >> notify += (s, p) => { >> stdout.printf("property `%s' has changed!\n", >>

Re: [Vala] anonymous functions

2008-07-15 Thread Sam Liddicott
* Sam Liddicott wrote, On 15/07/08 10:15: > I find this notation ugly: > > notify += (s, p) => { > stdout.printf("property `%s' has changed!\n", > p.name); > }; > > > Is there a reason why the => should be

[Vala] [ ] directives in vala

2008-07-15 Thread Sam Liddicott
Where can I learn about [ ] directives in vala; like [Notify] which seems very interesting, and all the rest. Most of the vala documentation covers the C like syntax, and only these directives incidentally. Sam ___ Vala-list mailing list Vala-list@gnome

[Vala] anonymous functions

2008-07-15 Thread Sam Liddicott
I find this notation ugly: notify += (s, p) => { stdout.printf("property `%s' has changed!\n", p.name); }; Is there a reason why the => should be required? notify += (s, p) {

[Vala] evangelise talloc for vala memory management

2008-07-15 Thread Sam Liddicott
I find the way vala deals with weak references and ownership slightly confusing; because it requires to programmer to track ownership rather than the program; however as I'm also trying to put vala in Samba4, I thought I should point out the talloc library used for memory management; used for samb