[Mono-bugs] [Bug 21072] Changed - Crash compiling a constant variable of Enum type
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
28 Feb 2002 21:59:36 -0000
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by ravi@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=21072
--- shadow/21072 Thu Feb 28 16:38:28 2002
+++ shadow/21072.tmp.22086 Thu Feb 28 16:59:36 2002
@@ -88,6 +88,15 @@
the code looked simpler that way ( i did not actualy finish the
code, just comments here and there, and some code on top of
that !!!). The only issue that i can see, is for nested enums, the
parent_builder is not a 'ModuleBuilder' but a 'Typebuilder'.
Why did you choose to implement the enum type with a 'TypeBuiler'
and not an EnumBuilder ?
+
+------- Additional Comments From ravi@ximian.com 2002-02-28 16:59 -------
+I remember going with EnumBuilder myself in the beginning but the
+issue I ran into was precisely what you mention - nested enums cannot
+be handled at all ! Basically, there's no TypeBuilder.DefineNestedEnum
+or even TypeBuilder.DefineEnum; so we have to make Enums global [using
+ModuleBuilder.DefineEnum] which of course, screws things up.
+
+