I beleive because F# does not use octal for leading 0's (as C did) and without telling F# that your constant is in hex, it assumes decimal. This makes unicode constants work the same way as normal constants.

By on 5/27/2010 9:51 AM ()

thanks

By on 5/27/2010 11:15 AM ()

This is quite interesting. The language spec states:

Unicode characters in UTF-8-encoded files may be directly embedded in strings, as for identifiers (see above), as may trigraph-like specifications of Unicode characters in an identical manner to C#.

However, I don't see an equivalent of let trigraph = '\\' digit digit digit (lex.fsl) in the C# spec, nor does csc accept it, as your code shows.

By on 5/27/2010 2:15 AM ()

Kha ,thanks.

just i see the f# langueage spec ,But i still don't know what it mean....

By on 5/27/2010 3:18 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper