Admin/de_overload.ML
author urbanc
Thu, 13 Sep 2007 23:58:38 +0200
changeset 24571 a6d0428dea8e
parent 23340 57c6a46d9153
child 24584 01e83ffa6c54
permissions -rw-r--r--
some cleaning up to do with contexts

(*  Title:      Pure/ML-Systems/de_overload.ML
    ID:         $Id$
    Author:     Makarius

De-overloaded operations for int and real.
*)

(* int *)

val op + = Int.+;
val op - = Int.-;
val op * = Int.*;
val op div = Int.div;
val op mod = Int.mod;
val ~ = Int.~;
val abs = Int.abs;

infix  7  *%
infix  6  +% -%
infix  4  >% >=% <% <=%

val op *% = Int.*;
val op +% = Int.+;
val op -% = Int.-;
val op >% = Int.>;
val op >=% = Int.>=;
val op <% = Int.<;
val op <=% = Int.<=;


(* real *)

infix  7  *~ /~
infix  6  +~ -~
infix  4  >~ >=~ <~ <=~

val op *~ = Real.*;
val op /~ = Real./;
val op +~ = Real.+;
val op -~ = Real.-;
val op >~ = Real.>;
val op >=~ = Real.>=;
val op <~ = Real.<;
val op <=~ = Real.<=;