Re: [Vala] Problem with strings

2008-04-14 Thread Andrea Bolognani
On Sun, 13 Apr 2008 18:27:53 +0200 Olivier Rossiny [EMAIL PROTECTED] wrote: but a vala string is a char* if I look at the C version ... so why isn't it allowed ? and, what is the solution ? By the way, why char* and not gchar*? -- KiyuKo eof AT kiyuko DOT org Resistance is futile, you will

Re: [Vala] Problem with strings

2008-04-13 Thread Jürg Billeter
On Sun, 2008-04-13 at 18:27 +0200, Olivier Rossiny wrote: I'm trying to code with Vala. In fact to rewrite a C piece of code. But this piece uses pointer arithmetic inside strings. Are Vala-strings unmutable ? Yes, strings are usually considered immutable in Vala. if I write this, I get