Re: [Vala] using a non-glib c library

2009-09-25 Thread Jan Hudec
On Thu, Sep 24, 2009 at 18:11:59 -0500, Mr. Maxwell . wrote: ID3Lib defines numerous enums. Here's an example typedef enum _ID3_TextEnc ID3_TextEnc; enum _ID3_TextEnc { ID3TE_NONE = -1, ID3TE_ISO8859_1, ID3TE_UTF16, ID3TE_UTF16BE, ID3TE_UTF8, ID3TE_NUMENCODINGS,

Re: [Vala] Hi, Is Vala what I am looking for?

2009-09-25 Thread Orlando José Luque Moraira
Hi! El 24 de septiembre de 2009 20:39, Levi Bard taktaktaktaktaktaktaktaktak...@gmail.com escribió: Hey, Kratos is my ferret :D The purpose of your original message was to introduce us to Kratos, wasn't it? :-P lol :) If he could read would say this: DOK! I am looking for a

Re: [Vala] [RFC, PATCH] add async keyword to vapigen

2009-09-25 Thread pHilipp Zabel
On Fri, Sep 25, 2009 at 9:23 AM, Jan Hudec b...@ucw.cz wrote: On Thu, Sep 24, 2009 at 22:21:36 +0200, Philipp Zabel wrote: Or would it be better to make the parser recognize asynchronous functions that don't end in _async? An async function can be recognized by having a GAsyncReadyCallback

Re: [Vala] [RFC, PATCH] add async keyword to vapigen

2009-09-25 Thread Jan Hudec
On Fri, Sep 25, 2009 at 10:17:44 +0200, pHilipp Zabel wrote: On Fri, Sep 25, 2009 at 9:23 AM, Jan Hudec b...@ucw.cz wrote: On Thu, Sep 24, 2009 at 22:21:36 +0200, Philipp Zabel wrote: Or would it be better to make the parser recognize asynchronous functions that don't end in _async? An

Re: [Vala] Final / Sealed classes in Vala

2009-09-25 Thread Uwe Strempel
Hello, Something I don't get here... The whole point of subclassing, is to make something old, do something new. Yes. Isn't that like calling any developer that might be looking at extending your class, an idiot? I'd have thought making sure virtuals aren't miss-overridden, is the

Re: [Vala] Final / Sealed classes in Vala

2009-09-25 Thread Jan Hudec
On Fri, Sep 25, 2009 at 16:22:41 +0200, Uwe Strempel wrote: Does anyone have a concrete example of where this sort of thing is actually appropriate, just for the sake of blocking sub-classing? I don't have useable example. Sealed or final methods or classes can be optimized just in time

Re: [Vala] Hi, Is Vala what I am looking for?

2009-09-25 Thread Jan Hudec
On Fri, Sep 25, 2009 at 10:03:59 +0200, Orlando José Luque Moraira wrote: Yes but not. I am looking for a system than can allow a developer to compile, easily, for any platform or SO or device. You can force the precompiler to generate code for linux, or windows, or a PDA just by using

[Vala] Vala bindings for epiphany?

2009-09-25 Thread Magnus Therning
Does anyone out there have a .vapi for epiphany's extension API? I'm particularly interested in the bookmark manipulation API. Cheers, M -- Magnus Therning(OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus

[Vala] params string[] foo?

2009-09-25 Thread Yu Feng
Dear List, How do I use the params syntax? I see it added in the parser but looks like the codegen is not dealing with it properly, or maybe I am missing something. This naive code fails: public void va(params string[] foo) { return; } public void call_va() { va(a, b, c); } /tmp/t.vala.c: