intLib.deprecate_int : unit -> unit
This function, by affecting the global grammar, also affects the behaviour of the pretty-printer. A term that includes affected constants will print with those constants in “fully qualified form”, typically as integer$op, and numerals will print with a trailing i. (Incidentally, the parser will always read integer terms if they are presented to it in this form.)
- load "intLib"; > val it = () : unit
- val t = ``2 + x``; <<HOL message: more than one resolution of overloading was possible>> > val t = ``2 + x`` : term - type_of t; > val it = ``:int`` : hol_type
- intLib.deprecate_int(); > val it = () : unit - ``2 + x``; > val it = ``2 + x`` : term - type_of it; > val it = ``:num`` : hol_type
- t; > val it = ``integer$int_add 2i x`` : term