src/Pure/ML-Systems/smlnj.ML
changeset 56281 03c3d1a7c3b8
parent 54342 fbcaa9f08879
child 56285 9315d3988d73
equal deleted inserted replaced
56280:f7de8392a507 56281:03c3d1a7c3b8
    54 
    54 
    55 (*limit the printing depth -- divided by 2 for comparibility with Poly/ML*)
    55 (*limit the printing depth -- divided by 2 for comparibility with Poly/ML*)
    56 local
    56 local
    57   val depth = ref (10: int);
    57   val depth = ref (10: int);
    58 in
    58 in
    59   fun get_print_depth () = ! depth;
    59   fun get_default_print_depth () = ! depth;
    60   fun print_depth n =
    60   fun put_default_print_depth n =
    61    (depth := n;
    61    (depth := n;
    62     Control.Print.printDepth := dest_int n div 2;
    62     Control.Print.printDepth := dest_int n div 2;
    63     Control.Print.printLength := dest_int n);
    63     Control.Print.printLength := dest_int n);
       
    64   val _ = put_default_print_depth 10;
    64 end;
    65 end;
    65 
    66 
    66 val ml_make_string = "(fn _ => \"?\")";
    67 val ml_make_string = "(fn _ => \"?\")";
    67 
    68 
    68 
    69