[Mono-list] mcs and hexidecimal literals
Adam Treat
manyoso@yahoo.com
Mon, 25 Feb 2002 21:27:47 -0800
Hello,
I don't know the status of hexidecimal support for integer literals, but mcs
does compile the following code, but the resultant executable maps foo.c to
type int32 (ok) but with value 0. csc of course maps this to 15.
Cheers,
Adam
//
// Tests enums and hexidecimal literals
//
using System;
public enum foo:int {
a = 0,
b = 1,
c = 0xf
}
public class Blah {
static void Main() {
Console.WriteLine((int)foo.a);
Console.WriteLine((int)foo.b);
Console.WriteLine((int)foo.c);
}
}