Surely it's OK for VAPI files whose purpose is to integrate with C anyway; and certainly preferable to having to ship an extra vapi .h file with inline function or macro definitions...
I think its great. I prefer the name cexpression to snippet, I use such things in my compac class virtual method enhancement, the expression use used by vala to locate the virtual method table for acompact class or object. Sam -----Original Message----- From: Emmanuele Bassi <[EMAIL PROTECTED]> Sent: Thursday, August 21, 2008 11:18 PM To: vala-list@gnome.org Subject: Re: [Vala] embedding c code snippet in vala source. On Thu, 2008-08-21 at 14:27 -0400, Yu Feng wrote: > Dear all, > > I made a patch that allows embedding c code snippet in vala source. > > http://bugzilla.gnome.org/show_bug.cgi?id=548897 > > This is quite primitive and more has to be done, especially to translate > the vala variable names to cnames. no, please: let's not turn Vala into the new GOB. this makes the code an unbearable mess - been there, done that. ciao, Emmanuele. -- Emmanuele Bassi, W: http://www.emmanuelebassi.net B: http://log.emmanuelebassi.net _______________________________________________ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list _______________________________________________ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list