[Vala] Is this the right syntax for defining pointers in Vala ?
- From: Serge Hulne <serge hulne gmail com>
- To: vala-list <vala-list gnome org>
- Subject: [Vala] Is this the right syntax for defining pointers in Vala ?
- Date: Mon, 20 Jun 2011 20:38:29 +0200
Is this the right syntax for defining pointers in Vala ?
//------
using Posix;
void main (string[] argv) {
string a = "hello";
var b = &a;
strcpy(*b, "bye");
Posix.stdout.printf("a = %s\n", a);
Posix.stdout.printf("b = %s\n", *b);
}
//-----
If not, how does one declare that a and b point to the same object in Vala ?
Serge.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]