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 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) {
>>     stdout.printf("tok: %s", s);
>>   }
>>   return 0;
>> }
>>
>> I get a C compiler error:
>> /home/andrewl/Vala/VTest1/prop.vala.c: In function ‘_vala_main’:
>> /home/andrewl/Vala/VTest1/prop.vala.c:41:2: error: too many arguments to
>> function ‘g_str_tokenize_and_fold’
>>   _tmp3_ = _tmp2_ = g_str_tokenize_and_fold ("1,2, 345", "en_GB", &_tmp0_,
>> &_tmp1_);
>>   ^
>>
>> As does any variation of two arguments.  Fewer than 2 args results in a
>> vala compiler error.
>>
>> Bug?
>> _______________________________________________
>> vala-list mailing list
>> vala-list@gnome.org
>> https://mail.gnome.org/mailman/listinfo/vala-list
>>
>
>
_______________________________________________
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to