Issue 54: Problems with C++ Keywords
Status:  Fixed
Owner: ----
Closed:  Aug 2010
Reported by heinz.ho...@googlemail.com, Aug 11, 2010
These Keywords are currently not working with the cpp target:

class Test {
		
	public static function main() {
		
		var asm	 = 19;
		var bool	 = 19;
		
		var const_cast	 = 19;
		
		var dynamic_cast	 = 19;

		var explicit	 = 19;

		var export	 = 19; // just a cpp-compiler warning, but i think it should be replaced too

		var mutable	 = 19;
		var namespace	 = 19;

		var reinterpret_cast	 = 19;

		var static_cast	 = 19;

		var typeid	 = 19;

		var typename	 = 19;
		

		var virtual	 = 19;

		var wchar_t	 = 19;

		
	}
}

i saw that you already replace asm with _asm, but this is also a keyword ;)


Aug 11, 2010
Project Member #1 gameh...@gmail.com
What kind of sadistic person uses wchar_t as a variable name ? :)
Aug 12, 2010
#2 ncanna...@gmail.com
Indeed :)
Aug 12, 2010
#3 heinz.ho...@googlemail.com
I agree that this have the lowest priority ;) and I added it just for completeness ;)
Aug 12, 2010
#4 heinz.ho...@googlemail.com
I would love to see

- cpp: big improvement! Using wchar_t as a variable name is finally possible!

in the compiler changelog :)
Aug 12, 2010
Project Member #5 gameh...@gmail.com
Well, if it makes the changelog look good ....
Status: Fixed
Aug 12, 2010
#6 heinz.ho...@googlemail.com
i'm sure it does :D

thank you!!