module Std:(submodule of`sig`

..`end`

`Pa_do`

) Overloadings for the modules in the
standard library.
For the modules `Int32`

, `Int64`

, `Nativeint`

, `Complex`

and the
two virtual modules `Int`

and `Float`

, the common features are:

- Integer constants are reinterpreted as constants of the module.
- The standard arithmetic operations
`+`

,`-`

(binary and unary),`*`

, and`/`

are overloaded. - Comparison operators are overloaded and specialized to the module types for greater efficiency.
`to_string`

and`of_string`

are aliased in all modules to the proper conversion functions.`min`

,`max`

,`incr`

,`decr`

are defined for all modules except`Complex`

.`min`

and`max`

are also allowed to take a literal tuple of values:`min(x1,...,xN)`

will inline an expression computing the minimum of the values`x1`

,...,`xN`

.

`abs`

,`mod`

,`pred`

,`succ`

,`lsl`

,`lsr`

,`asr`

(since the second argument of these functions is an integer, integer literals at this position will not be transformed),`land`

,`lor`

,`lxor`

,`lnot`

,`float`

,`truncate`

,`of_int`

,`to_int`

,`of_int32`

,`to_int32`

,`of_int64`

,`to_int64`

,`of_nativeint`

,`to_nativeint`

,`max_int`

,`min_int`

.

module Int:`sig`

..`end`

Int overloadings and optimized functions.

module Int32:`sig`

..`end`

Int32 overloadings and optimized functions.

module Int64:`sig`

..`end`

Int64 overloadings and optimized functions.

module Nativeint:`sig`

..`end`

Nativeint overloadings and optimized functions.

module Float:`sig`

..`end`

Float overloadings and optimized functions

module Complex:`sig`

..`end`

Overloading and optimizations for the Complex module.

`val overloading_hashtbl : ``Delimited_overloading.t`

Allows to use

`h.(k)`

for `Hashtbl.find h k`

and `h.(k) <- v`

for `Hashtbl.replace h k v`

. You can also use `clear`

,
`create`

, `fold`

, `iter`

and `length`

without prefix.`val overloading_string : ``Delimited_overloading.t`

Trivial overloading to restore the usual meaning of string
operations. Specializes

`compare`

.