[Mono-devel-list] UTF-8 variable names

Markus Bertheau twanger at bluetwanger.de
Tue Jul 8 17:38:03 EDT 2003


Hi,

I've been told that UTF-8 variable names should work, but indeed they
aren't:

bert at saphir mono-test $ mcs HelloWorld.cs 
syntax error, expecting CLOSE_PARENS COMMA SEMICOLON ASSIGN
HelloWorld.cs(16) error CS1002: Expecting `;'
Compilation failed: 1 error(s), 0 warnings

-- 
Markus Bertheau.
Berlin, Berlin.
Germany.
-------------- next part --------------
// HelloWorld.cs - GTK Window class Test implementation
//
// Author: Mike Kestner <mkestner at speakeasy.net>
//
// (c) 2001-2002 Mike Kestner

namespace Samples {

	using System;

	public class HelloWorld  {

		public static int Main (string[] args)
		{
            int foo = 0;
            int ?? = 0;
            Console.WriteLine("Hello World.");
			return 0;
		}
	}
}


More information about the Mono-devel-list mailing list