Re: [Vala] const in Vala



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.
 
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]