[Mono-dev] [PATCH] rootcontext
Raja R Harinath
rharinath at novell.com
Wed Aug 1 06:05:27 EDT 2007
Hi,
"Jb Evain" <jb at nurv.fr> writes:
> 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.
>
> --
> Jb
>
> Index: rootcontext.cs
> ===================================================================
> --- rootcontext.cs (revision 82492)
> +++ rootcontext.cs (working copy)
> @@ -328,6 +328,7 @@
> "System.Single", "System.Double",
> "System.Char",
> "System.Decimal", "System.Void",
> + "System.Enum",
> "System.RuntimeFieldHandle",
> "System.RuntimeArgumentHandle",
> "System.RuntimeTypeHandle",
> @@ -345,7 +346,6 @@
> // These are classes that depends on the core interfaces
> //
> string [] classes_second_stage = {
> - "System.Enum",
> "System.String",
> "System.Array",
> "System.Reflection.MemberInfo",
I don't remember if this went in, but I think it's reasonable.
You probably need to move the loading of System.Enum to the first stage,
if some real 'enum' became needed as part of the bootstrap.
So, please commit.
- Hari
More information about the Mono-devel-list
mailing list