After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 515225 - Incorrect use of C reserved keywords in generated code
Incorrect use of C reserved keywords in generated code
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Code Generator
0.3.x
Other All
: Normal minor
: ---
Assigned To: Jürg Billeter
Vala maintainers
: 515423 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-02-08 15:49 UTC by Marc-Andre Lureau
Modified: 2009-04-10 08:31 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Marc-Andre Lureau 2008-02-08 15:49:57 UTC
Vala is really a lot of fun! :)

using GLib;
public class Foo1.Main : Object {
	public void run (bool @if, bool @then, bool @foreach) {
	  var @true = "true";

	  if (@if)
	    message (@true);
	}

	static int main (string[] args) {
		var main = new Main ();
		main.run (true, true, true);
		return 0;
	}

}
Comment 1 Jürg Billeter 2008-02-08 19:34:44 UTC
Confirming.
Comment 2 Jürg Billeter 2008-02-09 15:21:12 UTC
*** Bug 515423 has been marked as a duplicate of this bug. ***
Comment 3 Jürg Billeter 2009-04-10 08:31:24 UTC
commit 74cb5c7d6d1df95f7779f84b58f31ceeab5417ad
Author: Jürg Billeter <j@bitron.ch>
Date:   Fri Apr 10 10:27:11 2009 +0200

    Improve handling of reserved identifiers
    
    Avoid conflicts between reserved identifiers and generated code
    for local variables and formal parameters. Fixes bug 469335 and
    bug 515225.