See this thread. Apparently, only "INZQRG" are supported suffixes (not X).

By on 6/28/2009 9:54 AM ()

Why this limitation?

By on 6/29/2009 9:37 AM ()

My guess it that it's an error, as it doesn't match the release notes: "Custom numeric literals, with a numeric constant followed by a single letter, are treated as syntactic sugar for API calls. In particular, 123X is now syntactic sugar for NumericLiteralX.FromInt32(123)". The X suffix currently doesn't work. I expect this to be fixed in the next release.

I wish this feature could be extended to longer suffixes, because standard library already does it (4us, 4uy), and, well, C++0x will do it.

Laurent.

By on 6/29/2009 2:13 PM ()

My guess is that these were chosen due to mathematical definitions:

I = ?

N = Natural

Z = Integer

Q = Rational

R = Real

G = ?

But, I'm not sure why these would be the only ones allowed.

By on 6/29/2009 12:48 PM ()
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