Re: [Vala] Posix binding!!

2008-08-18 Thread Luca Dionisi
Is this one a mispelling? :) public static void assert (string expresion); ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] Posix binding!!

2008-08-18 Thread Martin (OpenGeoMap)
Hi: I will try to create a project in google because already have a gmail accont. I will put my bindings in here. i think you could call it in a name like vala_bindings to work with the other developers, don´t you? vala bindings are a simple text file and in a same SVN would be great. Reg

Re: [Vala] Posix binding!!

2008-08-18 Thread Matías De la Puente
2008/8/18 Martin (OPENGeoMap) <[EMAIL PROTECTED]> > Hi. You are the bindings man!!!. Thank you very much! > Several week ago i created this wiki page: > http://live.gnome.org/Vala/ExternalBindings > > Parehaps is time to change to some svn server to manage this files and > bugs??? > I think t

Re: [Vala] Posix binding!!

2008-08-18 Thread Martin (OPENGeoMap)
Hi. You are the bindings man!!!. Several week ago i created this wiki page: http://live.gnome.org/Vala/ExternalBindings Parehaps is time to change to some svn server to manage this files and bugs??? I like google code. Someone interested in a project there like vala_bindings?? http://code.g

[Vala] Posix binding!!

2008-08-18 Thread Matías De la Puente
Hello all, Lastnight I made the first Posix binding!! The vapi file have implementation of: * fcntl.h * unistd.h * errno.h * termios.h * signal.h * and some others There's a lot of function, constants and structures in the vapi file but maybe are missing, Please feel free to post patches, sugge

Re: [Vala] Support for exporting a ... Jurgen!!!

2008-08-18 Thread martin
Hi: Several weeks ago matias wrote this mail: Hello all, It is posible to add an attibute (like '[Export]') for export a callback function in windows? In linux work fine the callback functions but in window must add this to a callback method: G_MODULE_EXPORT void callback_example (); When

Re: [Vala] Personal iterable, collection, list classes

2008-08-18 Thread Michael Lawrence
Are there any plans to include libgee within glib, as a separate module like GIO? On Mon, Aug 18, 2008 at 11:25 AM, Daniel Lucraft <[EMAIL PROTECTED]>wrote: > > Hi Alessandro, > > because you are wrapping an already iterable object > (your 'objects' property) you can do this very simply > by retu

Re: [Vala] Personal iterable, collection, list classes

2008-08-18 Thread Daniel Lucraft
Hi Alessandro, because you are wrapping an already iterable object (your 'objects' property) you can do this very simply by returning the iterator for that collection: public class MyList : Object, Iterable { protected ArrayList objects; public Type get_element_type () { return typeof (

Re: [Vala] Personal iterable, collection, list classes

2008-08-18 Thread gege2061
Hi, You should implement Gee.Iterable interface. 2008/8/18 Alessandro Pellizzari <[EMAIL PROTECTED]> > Hi all, > > I would like to create a couple of classes and use them as collections. > For example: > > public class MyList() > { > protected List objects = new ArrayList; > ... > } > > public

[Vala] Personal iterable, collection, list classes

2008-08-18 Thread Alessandro Pellizzari
Hi all, I would like to create a couple of classes and use them as collections. For example: public class MyList() { protected List objects = new ArrayList; ... } public class MyObject() { protected string mydata; } And I would like to code like this: var l = new MyList(); l.populate(blah

[Vala] questions about vapi.

2008-08-18 Thread Alexey Lubimov
1) patch to add g_utf8_strncpy to glib-2.0.vapi 2) function to replace string.ndup() - utf8_ndup.vala Questions: 1) I want add g_utf8_strncpy to class string, but these function have no standart order for their parameters. gchar* g_utf8_strncpy (gchar *dest,

Re: [Vala] sentinel patch

2008-08-18 Thread Jared Moore
Hi Sam, If you don't want this patch to be forgotten then you're better off filing a new enhancement bug on bugzilla and attaching the patch there. Cheers, Jared 2008/8/18 Sam Liddicott <[EMAIL PROTECTED]>: > This updated fact takes nto account that property setters return weak > strings. > > >

[Vala] sentinel patch

2008-08-18 Thread Sam Liddicott
This updated fact takes nto account that property setters return weak strings. This patch allows sentinels to be specified on a class and apply to all varargs methods of that class and subclasses. it also allows an empty string to be specified [CCode (sentinel="")] which results in no sentinel

[Vala] Proble with array.

2008-08-18 Thread picca
Hello I attached a file. valac -C test.vala you will see a problem in the geometry_new_copy method. this method call holder_new_copy with the wrong number of parameter. it miss the array length. did I miss something ? See you Frederic class Holder { weak uint[] idx; public Holder.copy(Hold