Browse Source

Added Initializer (not called from module Modules any more)

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@6600 8c9fc860-2736-0410-a75d-ab315db34111
felixf 9 năm trước cách đây
mục cha
commit
f84603cbf2
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      source/Win32.Machine.Mod

+ 5 - 0
source/Win32.Machine.Mod

@@ -567,6 +567,11 @@ BEGIN
 	END;
 END Init;
 
+	PROCEDURE {INITIAL} Start;
+	BEGIN
+		Init; (* cannot allocate variables in here *)
+	END Start;
+
 	(* Initialize locks. *)
 	PROCEDURE InitLocks;
 	VAR i: LONGINT;