Re: [Vala] Tokenize_and_fold bug?

2014-11-17 Thread Michele Dionisio
try to define your variable x with [CCode (array_length = false, array_null_terminated = true)] 2014-11-17 5:15 GMT+01:00 Andy Lees andrewl...@gmail.com: Hi, Not sure if I'm doing this wrong, but if I do something like: public static int main(string [] argv) { string[] x; var a =

Re: [Vala] Tokenize_and_fold bug?

2014-11-17 Thread Luca Bruno
On 17/11/2014 05:15, Andy Lees wrote: Hi, Not sure if I'm doing this wrong, but if I do something like: public static int main(string [] argv) { string[] x; var a = 1,2, 345.tokenize_and_fold (en_GB, out x); stdout.printf(Len: %d\n, a.length); foreach (var s in a) {

Re: [Vala] Tokenize_and_fold bug?

2014-11-17 Thread Andy Lees
Same result. Submitted bug. On Mon, Nov 17, 2014 at 7:31 PM, Michele Dionisio michele.dioni...@gmail.com wrote: try to define your variable x with [CCode (array_length = false, array_null_terminated = true)] 2014-11-17 5:15 GMT+01:00 Andy Lees andrewl...@gmail.com: Hi, Not sure if

[Vala] VAPI bindings for external lib

2014-11-17 Thread Gonzalo Aguilar Delgado
Hello, I'm modifiying babobab to support a ceph cluster. And want to do add several tools to position files on OSDs, show fragemntation of underlaying filesystems, etc. Maybe this will generate other tool, but for now just modifying. The problem is that I cannot access directly to librados,

Re: [Vala] VAPI bindings for external lib

2014-11-17 Thread Luca Bruno
On 17/11/2014 14:28, Gonzalo Aguilar Delgado wrote: Hello, I'm modifiying babobab to support a ceph cluster. And want to do add several tools to position files on OSDs, show fragemntation of underlaying filesystems, etc. Maybe this will generate other tool, but for now just modifying. The

Re: [Vala] VAPI bindings for external lib

2014-11-17 Thread Michael Catanzaro
On Mon, 2014-11-17 at 14:28 +0100, Gonzalo Aguilar Delgado wrote: Hello, I'm modifiying babobab to support a ceph cluster. And want to do add several tools to position files on OSDs, show fragemntation of underlaying filesystems, etc. Maybe this will generate other tool, but for now just

Re: [Vala] VAPI bindings for external lib

2014-11-17 Thread Gonzalo Aguilar Delgado
Hi, perfect! Thank you for fast response. Just one question. Is there any vapi repos to upload resulting vapi. It would be nice to have something like nexus for maven but in this case for vapis. Best regards, El 17/11/14 a las 14:41, Luca Bruno escribió: On 17/11/2014 14:28, Gonzalo

Re: [Vala] VAPI bindings for external lib

2014-11-17 Thread Gonzalo Aguilar Delgado
Hi Michael, I missed this one. Thank you. El 17/11/14 a las 16:07, Michael Catanzaro escribió: On Mon, 2014-11-17 at 14:28 +0100, Gonzalo Aguilar Delgado wrote: Hello, I'm modifiying babobab to support a ceph cluster. And want to do add several tools to position files on OSDs, show

Re: [Vala] VAPI bindings for external lib

2014-11-17 Thread Luca Bruno
On 17/11/2014 17:46, Gonzalo Aguilar Delgado wrote: Hi, perfect! Thank you for fast response. Just one question. Is there any vapi repos to upload resulting vapi. It would be nice to have something like nexus for maven but in this case for vapis. This is the official unofficial list of

[Vala] Adding unitary test support to Autovala

2014-11-17 Thread rastersoft
Hi all: I'm working on adding unitary test support to autovala, but have some doubts that I want to comment here, to ensure that the implementation is right. The first one is how to define each unitary test; my original idea was: one file, one test, so inside a folder called unitests will

Re: [Vala] Adding unitary test support to Autovala

2014-11-17 Thread Craig
Not exactly sure what you mean, but a very common pattern is one unit test file for each class (unit) you want to test. This has worked fine for me in every language I've worked with. On Nov 17, 2014 4:07 PM, rastersoft ras...@rastersoft.com wrote: Hi all: I'm working on adding unitary test

Re: [Vala] Adding unitary test support to Autovala

2014-11-17 Thread Steven Oliver
I would suggest one test per file. That seems to be the most common use case in my opinion. I also don't see why you couldn't in theory do both. All files in the top directory are one test per file. Anything in a sub directory is treated as all files are compiled to a test. On Mon, Nov 17, 2014