Nicolas Cannasse 17 роки тому
батько
коміт
cb758f7a39
5 змінених файлів з 9 додано та 9 видалено
  1. 1 0
      doc/CHANGES.txt
  2. 7 0
      std/Enum.hx
  3. 0 8
      std/Type.hx
  4. 1 0
      std/haxe/ImportAll.hx
  5. 0 1
      std/haxe/Unserializer.hx

+ 1 - 0
doc/CHANGES.txt

@@ -38,6 +38,7 @@ TODO inlining : substitute class+function type parameters in order to have fully
 	PHP now generates __toString for classes that have toString defined
 	implemented php.Lib.getClasses()
 	fixed duplicate fields in Type.getInstanceFields on subclass
+	Enum is no longer defined inside Type but is standalone class
 
 2008-07-28: 2.0
 	fixed current package bug in inherited constructor type

+ 7 - 0
std/Enum.hx

@@ -0,0 +1,7 @@
+
+/**
+	An abstract type that represents an Enum.
+	See [Type] for the haXe Reflection API.
+**/
+extern class Enum {
+}

+ 0 - 8
std/Type.hx

@@ -1,11 +1,3 @@
-
-/**
-	An abstract type that represents an Enum.
-	See [Type] for the haXe Reflection API.
-**/
-extern class Enum {
-}
-
 /**
 	The diffent possible runtime types of a value.
 	See [Type] for the haXe Reflection API.

+ 1 - 0
std/haxe/ImportAll.hx

@@ -29,6 +29,7 @@ import Array;
 import Class;
 import Date;
 import DateTools;
+import Enum;
 import EReg;
 import Hash;
 import IntHash;

+ 0 - 1
std/haxe/Unserializer.hx

@@ -23,7 +23,6 @@
  * DAMAGE.
  */
 package haxe;
-import Type.Enum;
 
 typedef TypeResolver = {
 	function resolveClass( name : String ) : Class<Dynamic>;