tuned MLWorks options;
authorwenzelm
Fri, 16 Oct 1998 18:52:17 +0200
changeset 5660 f2c5354cd32f
parent 5659 e2a2be6089b4
child 5661 6ecb6ea25f19
tuned MLWorks options; added print_depth;
src/Pure/ML-Systems/mlworks.ML
--- a/src/Pure/ML-Systems/mlworks.ML	Fri Oct 16 18:50:50 1998 +0200
+++ b/src/Pure/ML-Systems/mlworks.ML	Fri Oct 16 18:52:17 1998 +0200
@@ -18,9 +18,13 @@
 
 (* MLWorks parameters *)
 
-MLWorks.Internal.Runtime.Event.stack_overflow_handler
-  (fn () => MLWorks.Internal.Runtime.Memory.max_stack_blocks :=
-    ! MLWorks.Internal.Runtime.Memory.max_stack_blocks + 20);
+val _ =
+ (MLWorks.Internal.Runtime.Event.stack_overflow_handler
+    (fn () => MLWorks.Internal.Runtime.Memory.max_stack_blocks :=
+      ! MLWorks.Internal.Runtime.Memory.max_stack_blocks + 20);
+  MLWorks.Internal.Runtime.Memory.gc_message_level := 10;
+  (*Is this of any use at all?*)
+  Shell.Options.set (Shell.Options.ValuePrinter.showExnDetails, true));
 
 
 (* Poly/ML emulation *)
@@ -30,8 +34,8 @@
   | exit _ = OS.Process.exit OS.Process.failure;
 fun quit () = exit 0;
 
-(*n.a.*)
-fun print_depth n = ();
+(*limit the printing depth*)
+fun print_depth n = Shell.Options.set (Shell.Options.ValuePrinter.maximumDepth, n);
 
 (*interface for toplevel pretty printers, see also Pure/install_pp.ML*)
 (*n.a.*)