Re: [Vala] Static local variable
- From: pancake <pancake youterm com>
- To: vala-list gnome org
- Subject: Re: [Vala] Static local variable
- Date: Thu, 02 Jun 2011 14:48:50 +0200
in short: 'static' in vala have different meaning than in C.
If you want to do this use a field from the container object of the
given class.
In order to do this (C-like static) we should define a new keyword like
'permanent', but
it just make things look wrong. And it's out of the design principles of
Vala.
On 06/02/11 12:19, Jacques-Pascal Deplaix wrote:
I have a question for a long time:
Why Vala don't support static keyword for a local variable ?
It would be really usefull !
C support static keyword as local variable. So,
Why valac don't "put" static keyword directly in C file ?
I don't know yet valac internal compilation code, so I can't patch it
for now...
_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]