Re: [Vala] 'const' in string parameter



pancake wrote:

if the function receives a char* then it is a "ref string s" or "out string s", string is obviously const, because the function will not modify it. You can also use directly
pointers using "char*", but "ref char s" is wrong.

simply "char*" did the trick. Thank you!



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]