Re: [Vala] const in Vala
- From: "Raphael Bosshard" <raphael bosshard gmail com>
- To: "Jan Niklas Hasse" <jhasse gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] const in Vala
- Date: Tue, 2 Dec 2008 16:37:22 +0100
Hello Jan,
the line you provided should work without problems. Could you show me the whole file?
So long,
Raphael
On Tue, Dec 2, 2008 at 4:30 PM, Jan Niklas Hasse
<jhasse gmail com> wrote:
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.
Yeah, I've already read the Tutorial.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]