GNOME Bugzilla – Bug 601350
variable initialization on for loop
Last modified: 2010-01-09 11:35:53 UTC
The program: void main(string[] args){ for ( int i = 0, j = 4; i < 10; i++){ stdout.printf("Hello"); } stdout.printf("Hello"); } initializes two variables in for loop, but vala gives the error: error: syntax error, expected `;' for ( int i = 0, j = 4; i < 10; i++){ ^
commit 02fb161cb286a82ae1d7dc983067b0052c2ad05b Author: Jürg Billeter <j@bitron.ch> Date: Sat Jan 9 12:34:53 2010 +0100 Support multiple variable declarators in for initializer Fixes bug 601350.