Re: [Vala] 'const' in string parameter
- From: Viktor Semykin <thesame ml gmail com>
- To: pancake <pancake youterm com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] 'const' in string parameter
- Date: Thu, 26 Nov 2009 18:10:21 +0200
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]