[Mono-dev] [PATCH] rootcontext
Marek Safar
marek.safar at seznam.cz
Fri Jul 27 06:51:39 EDT 2007
Hello,
Hopefully, I can bring some light to this issue.
IIRC System.Enum is not value type. It's a class which derives from
ValueType.
I don't remember exactly whether it was because each enum derives from
Enum or
something else but try typeof (Enum).IsValueType.
Regards,
Marek
> Am confused as well. While building smcs with -nostdlib, I encountered
> an issue saying that System.Enum was not properly initialized. I've
> applied this patch and worked on other issues of smcs.
>
> But the main build fails with this patch. Still it's somewhat
> confusing that we are asserting that Enum is a class while it's a
> ValueType.
>
> I'll investigate more after I'm done with smcs.
>
> On 7/25/07, Miguel de Icaza <miguel at novell.com> wrote:
>
>>> In /nostdlib mode, mcs loads predefined types, and validates that
>>> System.Enum is a class instead of a ValueType. Attached is a patch to
>>> fix that.
>>>
>> Am confused, what is this for?
>>
>>
>
>
>
More information about the Mono-devel-list
mailing list