Groups | Blog | Home
all groups > dotnet windows forms designtime > october 2005 >

dotnet windows forms designtime : cannot use unicode in variable names


cody
10/20/2005 12:00:00 AM
for example i cannot use the dollar-sign or the euro-sign in a variable name
although c# itself allows it.
is this a bug?

Oliver Sturm
10/20/2005 12:00:00 AM
[quoted text, click to view]

What do you mean "although c# itself allows it"? Reading the C# language
specs, section 2.4.2 defines an "identifier" as C# allows it. Valid
characters are defined by Unicode character classes, and while Nd is
included (a simple digit), Sc (currency symbols) is not in the list.



Oliver Sturm
--
Expert programming and consulting services available
cody
10/20/2005 8:00:32 PM
Sorry I was wrong about that, I noticed that $ signs can be used in
identifiers in J#.NET so I assumed this would be true for C# as well.


"Oliver Sturm" <oliver@sturmnet.org> schrieb im Newsbeitrag
news:xn0e8q1p239o2cb001@msnews.microsoft.com...
[quoted text, click to view]

AddThis Social Bookmark Button