Re: [Vala] const in Vala
- From: "Jan Niklas Hasse" <jhasse gmail com>
- To: "Raphael Bosshard" <raphael bosshard gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] const in Vala
- Date: Tue, 2 Dec 2008 16:30:03 +0100
yes, there is; just use the keyword 'const' to designate constants.
Hm ... I tried that, but it didn't seem to work, that's why I asked on the mailing list.
I get the following error:
input.vala:2.12-2.21: error: syntax error, expected `;'
const int bufferSize = 32;
^^^^^^^^^^
Compilation failed: 1 error(s), 0 warning(s)
Without const, everything is working.
It might help you to look at the examples at http://live.gnome.org/Vala. Many a question will be answered there. :D
Yeah, I've already read the Tutorial.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]