[Mono-list] bug in mcs and more.
30 Mar 2002 13:06:50 -0600
On Fri, 2002-03-29 at 17:45, Erik Bågfors wrote:
> The following code didn't work.
> [assembly: AssemblyTitle("NETRuby")]
> [assembly: AssemblyVersion("0.8.*")]
> [assembly: AssemblyCopyright("NETRuby - Copyright (C) 2002 arton")]
Yes, this is a known bug in mcs which I am going to try and fix ASAP.
> The following code doesn't compile
> public enum FL
> EMPTY = 0,
> USHIFT = 11,
> USER0 = (1<<(USHIFT+0)),
> USER1 = (1<<(USHIFT+1)),
> USER2 = (1<<(USHIFT+2)),
> USER3 = (1<<(USHIFT+3)),
> USER4 = (1<<(USHIFT+4)),
> USER5 = (1<<(USHIFT+5)),
> USER6 = (1<<(USHIFT+6)),
> USER7 = (1<<(USHIFT+7)),
> UMASK = (0xff<<USHIFT),
> SINGLETON = USER0,
> FINALIZE = (1<<7),
> TAINT = (1<<8),
> EXIVAR = (1<<9),
> FREEZE = (1<<10),
> This does.
Hmm, thanks for bringing this to our attention. Again, a bug in mcs
which currently doesn't allow you to have expressions such as the ones
above, to initialize enum members.
> I know it's to early in the mono-project to expect everything to work
> but if I can find this error perhaps I can help the project as well as
Oh yes, and we appreciate such input very much :-)
> having fun myself :) How do I go about to find more information about
> this error??
Well, this last one seems tricky. Were you trying to do this in Linux
or Windows. Perhaps one way to isolate the error is trying the same
thing in windows - that way we know if it's a bug in mcs or mono.
"If you're smart, you'll be humble. There always is somebody
who hasn't read a book and knows twice as much as you do."
-- David Duchovny in Readers' Digest
Ravi Pratap M <email@example.com>