Re: [Vala] How to call a gst_object_ref in vala?

2008-04-28 Thread Xavier Bestel
On Mon, 2008-04-28 at 16:03 +0200, Juerg Billeter wrote: On Mon, April 28, 2008 15:43, Jaap A. Haitsma wrote: On Mon, Apr 28, 2008 at 1:44 PM, Juerg Billeter [EMAIL PROTECTED] wrote: On Mon, April 28, 2008 12:55, Jaap A. Haitsma wrote: I want to use a gst_bin_remove function [1], but I

Re: [Vala] Vala translation to C

2008-07-24 Thread Xavier Bestel
On Thu, 2008-07-24 at 21:00 +0900, Paul wrote: Hey all, I'm a recent BSc computer graduate and I am looking into doing something similiar to Vala, at least as part of my research postgrad. Can anyone give me a pointer where to look in the code as to where and how exactly Vala translates

Re: [Vala] GLX (OpenGL Extension to the X Window System) binding!!

2008-08-14 Thread Xavier Bestel
Hi, Le mercredi 13 août 2008 à 16:56 -0300, Matías De la Puente a écrit : Hello all, I made a glx binding for vala (glx.vapi). An example is also attach to this mail. For compile the example you need also the gl.vapi file (http://live.gnome.org/Vala/ExternalBindings). Compile the

Re: [Vala] GLX (OpenGL Extension to the X Window System) binding!!

2008-08-15 Thread Xavier Bestel
Hi Matías, Le vendredi 15 août 2008 à 10:12 -0300, Matías De la Puente a écrit : Hi Xavier I have two ways to put the constants and the functions in the binding: The first one is put the constants and the functions as they appear in the header file, GLX_SOMETHING for constants and

Re: [Vala] type MIN and MAX

2008-09-15 Thread Xavier Bestel
On Mon, 2008-09-15 at 08:32 -0400, Levi Bard wrote: What about this? http://blog.stevex.net/index.php/string-formatting-in-csharp/ Just taking {0} {1}... What would the c#-style format give us that the printf-style doesn't? If you're just going to use an item's to_string() method,

Re: [Vala] Ownership syntax changes

2008-12-20 Thread Xavier Bestel
Le vendredi 19 décembre 2008 à 12:10 +0100, Jürg Billeter a écrit : I just committed some ownership syntax changes to trunk. The old syntax will continue to be supported but is planned to be deprecated after the release of Vala 0.5.4. * `owned' type modifier replaces `#' type

Re: [Vala] just a suggestion

2009-01-22 Thread Xavier Bestel
Hi Phil, On Tue, 2009-01-20 at 19:49 +, Phil Housley wrote: * Intro o History + GLib/GObject + Gtk + Vala o Programming style + OO + Signals + Loops o Caveats * First Program o Hello

Re: [Vala] just a suggestion

2009-01-23 Thread Xavier Bestel
On Fri, 2009-01-23 at 11:33 +0100, Luca Dionisi wrote: Pick up http://en.wikibooks.org/wiki/C_Sharp_Programming which is a featured wikibook. There is not a book like thinking in c sharp or c sharp tutorial. That one looks very nice, indeed. ___

Re: [Vala] Xlib bindings?

2009-02-18 Thread Xavier Bestel
Le jeudi 19 février 2009 à 07:38 +0100, Maciej Piechotka a écrit : I've tried to do a xcb bindings but there is a problem as xcb uses multiinheritance. Can that be resolved with interfaces ? ___ Vala-list mailing list Vala-list@gnome.org

Re: [Vala] [OT] indentation config for vim/emacs

2009-02-26 Thread Xavier Bestel
On Thu, 2009-02-26 at 09:30 +0100, Xavier Bestel wrote: On Wed, 2009-02-25 at 21:50 +0100, Stian Selnes wrote: Google didn't help me either, so I ended up writing some code for Emacs that enables indentation and line continuation the way I want it to. If I understand you correctly

Re: [Vala] Operator overloading

2009-03-24 Thread Xavier Bestel
On Tue, 2009-03-24 at 15:15 +0100, pancake wrote: Why do you want to limit those operators statically linked to native or pseudo-native data types to the compiler instead of letting the developer to choose? Because in the end it's unreadable. Math operators should be limited to purely math

Re: [Vala] Operator overloading

2009-03-24 Thread Xavier Bestel
Le mardi 24 mars 2009 à 16:22 -0700, William Swanson a écrit : A locked-down implementation [...] would not leave much room for nightmarish horror stories. This isn't C++, where you can overload the [] or - operators to shoot yourself in the foot. Maybe. But this is not GObject either, and

Re: [Vala] mod_vala (was Removal of Mono)

2009-06-30 Thread Xavier Bestel
That's why Vala would be a boon. BTW, there already exist such a web server, it's called Midgard: http://www.midgard-project.org/ it's GObject-based, and I guess plugging Vala into it would be quite natural. Xav On Tue, 2009-06-30 at 01:36 -0700, Christian Hergert wrote: It's a cute

Re: [Vala] Port Tomboy?

2009-07-03 Thread Xavier Bestel
On Thu, 2009-07-02 at 17:41 +0200, Jiří Zárevúcky wrote: There are lots of reasons not to clone tomboy in Vala. Waste of time as you say, etc. But saying [wouldn't it] make [the developer] angry is not one of them. I was talking about moral implication of *useless* porting to another

Re: [Vala] Libgee's Roadmap proposal

2009-07-23 Thread Xavier Bestel
Hi, Le jeudi 23 juillet 2009 à 14:32 +0200, Didier Ptitjes a écrit : Quikee wrote: Hi, - is_empty() Do we make this a property or a method ? I think this should be a method as it generally is only a convenience method for size property. - is_empty() Same comment as for

Re: [Vala] Forum for Vala/Genie

2009-10-01 Thread Xavier Bestel
On Wed, 2009-09-30 at 22:00 +0200, Jiří Zárevúcky wrote: All the important things were said so I'll simply say that I agree with Jan and Michael. We don't need forums and we probably never will. I'd say you're all old farts :) If some people prefer a forum as a mean of communication, so be it.

[Vala] Parsing with Vala

2009-10-18 Thread Xavier Bestel
Hi, I'd like to do some script parsing with Vala, and I wonder if anyone of you had done something like that. I'm mostly interested in the lexical parsing (strings, keywords, numbers, etc.). Thanks, Xav ___ Vala-list mailing list

Re: [Vala] Parsing with Vala

2009-10-18 Thread Xavier Bestel
Le dimanche 18 octobre 2009 à 19:26 +0100, Abderrahim Kitouni a écrit : Hi, 2009/10/18 Xavier Bestel xavier.bes...@free.fr: Hi, I'd like to do some script parsing with Vala, and I wonder if anyone of you had done something like that. I'm mostly interested in the lexical parsing

Re: [Vala] GScanner in glib.vapi busted (Re: Parsing with Vala)

2009-10-21 Thread Xavier Bestel
On Tue, 2009-10-20 at 19:33 +0200, Xavier Bestel wrote: On Sun, 2009-10-18 at 23:00 +0200, Xavier Bestel wrote: Le dimanche 18 octobre 2009 à 19:26 +0100, Abderrahim Kitouni a écrit : [...] You might want to look at GScanner, I haven't used it myself, but it seems to be exactly what you

[Vala] [patch] G.Scanner

2009-10-27 Thread Xavier Bestel
Hi, could someone apply that please ? Thanks, Xav --- /usr/share/vala/vapi/glib-2.0.vapi.orig 2009-10-20 19:22:51.0 +0200 +++ /usr/share/vala/vapi/glib-2.0.vapi 2009-10-21 17:10:01.0 +0200 @@ -2125,13 +2125,17 @@ public TokenValue next_value;

Re: [Vala] [patch] G.Scanner

2009-11-23 Thread Xavier Bestel
Hi, Le mardi 27 octobre 2009 à 18:10 +0100, Julian Andres Klode a écrit : Am Dienstag, den 27.10.2009, 17:55 +0100 schrieb Xavier Bestel: Hi, could someone apply that please ? Thanks, Xav --- /usr/share/vala/vapi/glib-2.0.vapi.orig 2009-10-20 19:22:51.0 +0200

Re: [Vala] Printing Unicode Characters

2009-11-30 Thread Xavier Bestel
Le lundi 30 novembre 2009 à 18:50 +0100, Jiří Zárevúcky a écrit : Emad Al-Bloushi píše v Po 30. 11. 2009 v 19:44 +0300: I have tried this one it works but I do now know if there is alternative solution unichar unicode_character = 'ع'; stderr.printf(Unicode Character : %s\n,new

Re: [Vala] [patch] G.Scanner

2009-12-04 Thread Xavier Bestel
Ok, I've found the problem: when a [SimpleType] contains a string, it's automatically promoted to a more complex type which needs to be destroyed. IMHO it's a bug with Vala and needs to at least print a warning. In the remaining time, here's the correct patch, please apply: ---

Re: [Vala] Libgee problem

2009-12-09 Thread Xavier Bestel
Le mercredi 09 décembre 2009 à 19:51 +0100, Jiří Zárevúcky a écrit : Nicolas píše v St 09. 12. 2009 v 18:24 +0100: [...] Could you post the code that segfaults? That's probably a bug in Vala. Thank you. That's not a Vala bug. There is a problem that you don't supply Map's constructor

Re: [Vala] Libgee problem

2009-12-10 Thread Xavier Bestel
On Wed, 2009-12-09 at 23:13 +0100, Jiří Zárevúcky wrote: Xavier Bestel píše v St 09. 12. 2009 v 22:42 +0100: [...] Excuse me, but I'm a bit lost: I thought the question mark was for nullable types. What's the link with boxed types ? Thanks, Xav In order to make a value

Re: [Vala] Vala Journal, Issue #1

2010-02-01 Thread Xavier Bestel
On Mon, 2010-02-01 at 02:15 +0100, Jiří Zárevúcky wrote: Here's the plan: Each weekend, I'm going to sumarize what is going on around Vala. This includes recently included features, open discussions, fixed issues, etcetera. I may even drop in some unintrusive advertisement of interesting

Re: [Vala] Vala Journal, Issue #1

2010-02-03 Thread Xavier Bestel
On Wed, 2010-02-03 at 17:50 +0100, Jiří Zárevúcky wrote: Xavier Bestel píše v Po 01. 02. 2010 v 12:24 +0100: On Mon, 2010-02-01 at 14:44 +0800, Nor Jaidi Tuah wrote: Coalesce operator (??) is now implemented in master. ;) https://bugzilla.gnome.org/show_bug.cgi?id=580816 May I

Re: [Vala] Is it possible to do a reading buffer offset in vala?

2010-02-09 Thread Xavier Bestel
On Tue, 2010-02-09 at 19:04 +0100, Jiří Zárevúcky wrote: JM píše v Út 09. 02. 2010 v 18:52 +0100: Hello Jiří Thanks! It works fine with pointers. just like in C. I just there was a possibility to avoid them in vala because I have to manage them manually. But it's also fine this way.

Re: [Vala] Is it possible to do a reading buffer offset in vala?

2010-02-09 Thread Xavier Bestel
the multibyte chars in the cast to string of my reading buffer (which is: char* buffer = new char[MAX];) or in the gio inputstream reading? I expected to reconstruct the whole file content, if I read it byte by byte.?. Regards Jörn Am Dienstag, den 09.02.2010, 19:08 +0100 schrieb Xavier

Re: [Vala] Adding my custom object to libGee.List...

2010-06-21 Thread Xavier Bestel
On Sun, 2010-06-20 at 21:28 +0300, Arkadi Viner wrote: Thanks, that did the trick. On Sun, Jun 20, 2010 at 5:02 AM, Didier 'Ptitjes' ptit...@free.fr wrote: Hi, On 06/19/10 23:48, Arkadi Viner wrote: *so, the declaration look like this:* private Gee.List pdfDocuments = new

Re: [Vala] array declaration

2010-07-08 Thread Xavier Bestel
On Wed, 2010-07-07 at 23:07 +0200, Frederik wrote: Am 07.07.2010 18:33, Harry Van Haaren wrote: Hey, Coming from a C++ background I first tried typeHere nameHere[]; too. I noticed that newer languages seemed to have type[] name; configuration (Java, C# etc). Vala supports two

Re: [Vala] array declaration

2010-07-08 Thread Xavier Bestel
On Thu, 2010-07-08 at 10:45 +0200, Ole André Vadla Ravnås wrote: Hi, On Thu, Jul 8, 2010 at 9:35 AM, Xavier Bestel xavier.bes...@free.fr wrote: On Wed, 2010-07-07 at 23:07 +0200, Frederik wrote: (...) There's one missing type, supported by gcc: dynamic stack-allocated arrays: int

Re: [Vala] how to declare multi-dimensional arrays in Genie?

2010-07-15 Thread Xavier Bestel
On Thu, 2010-07-15 at 11:52 +0200, Nicolas wrote: Hi Ron, Try this: const myarray : array of uint64 = {13, 64} Isn't this a mono-dimensional array with 2 elements ? Xav ___ vala-list mailing list vala-list@gnome.org

Re: [Vala] Vala thinks uint32 constant is int64

2010-11-18 Thread Xavier Bestel
Hi, On Thu, 2010-11-18 at 10:52 +0100, Jaroslav Smid wrote: /home/jardik/Projects/DAOLinux/ErfEditor/Blowfish.vala:6.15-6.24: error: Expected initializer of type `uint32' but got `int64' 0x243F6A88, 0x85A308D3, 0x13198A2E, 0x03707344, ^^ I think it's

Re: [Vala] vala code generation too constrained?

2011-01-11 Thread Xavier Bestel
On Tue, 2011-01-11 at 10:47 +0100, pancake wrote: On 01/10/11 05:03, Nor Jaidi Tuah wrote: Dear all, Some of the big gotchas in vala is due to the desire to produce a standardized C code that can interface nicely with non-vala module. I suspect this constrain also makes it difficult

Re: [Vala] vala code generation too constrained?

2011-01-11 Thread Xavier Bestel
On Tue, 2011-01-11 at 11:07 +0100, pancake wrote: On 01/11/11 10:48, Xavier Bestel wrote: You totally misunderstood him, pancake :) oops By old timers he means people with a long experience of C. weird concept Typical English expression, AFAIK. And what's he's talking about

Re: [Vala] Vala for everyone

2011-01-31 Thread Xavier Bestel
On Mon, 2011-01-31 at 15:40 +0100, Jens Georg wrote: On Mon, 2011-01-31 at 14:27 +, Denis Reichelt wrote: Hi all, I'm not a GNOME developer but I'm interrested in Vala because for me it would be a perfect C frontend. C is virtually platform independent because C

Re: [Vala] ascii

2011-10-25 Thread Xavier Bestel
On Tue, 2011-10-25 at 11:19 -0400, Luis L. Rodríguez Oro wrote: El 25/10/11 08:52, Rodrigo Esteban Cares Guarda escribió: Hi, You can try: int ascii_value = int.parse(%d.printf('X')); Replacing X char by your character. Good luck. El mar, 25-10-2011 a las 08:10 -0400, Luis L.

Re: [Vala] ascii

2011-10-26 Thread Xavier Bestel
On Tue, 2011-10-25 at 11:32 -0400, Luis L. Rodríguez Oro wrote: El 25/10/11 11:24, Xavier Bestel escribió: On Tue, 2011-10-25 at 11:19 -0400, Luis L. Rodríguez Oro wrote: El 25/10/11 08:52, Rodrigo Esteban Cares Guarda escribió: Hi, You can try: int ascii_value = int.parse(%d.printf