src/Pure/ML-Systems/alice.ML
changeset 24809 41a21f59f74d
parent 24807 f66ab1dfbae1
child 26084 a7475459c740
equal deleted inserted replaced
24808:7c9a970d7ab5 24809:41a21f59f74d
    25 (** ML system related **)
    25 (** ML system related **)
    26 
    26 
    27 (*low-level pointer equality*)
    27 (*low-level pointer equality*)
    28 fun pointer_eq (_: 'a, _: 'a) = false;
    28 fun pointer_eq (_: 'a, _: 'a) = false;
    29 
    29 
    30 (*downgraded IntInf*)
    30 
       
    31 (* integer compatibility -- downgraded IntInf *)
       
    32 
       
    33 structure Time =
       
    34 struct
       
    35   open Time;
       
    36   val fromMilliseconds = Time.fromMilliseconds o IntInf.fromInt;
       
    37   val fromSeconds = Time.fromSeconds o IntInf.fromInt;
       
    38 end;
       
    39 
    31 structure IntInf =
    40 structure IntInf =
    32 struct
    41 struct
    33   fun divMod (x, y) = (x div y, x mod y);
    42   fun divMod (x, y) = (x div y, x mod y);
    34   open Int;
    43   open Int;
    35 end;
    44 end;