Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
38
Task/Special-variables/OCaml/special-variables-1.ocaml
Normal file
38
Task/Special-variables/OCaml/special-variables-1.ocaml
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
val argv : string array
|
||||
(** The command line arguments given to the process.
|
||||
The first element is the command name used to invoke the program.
|
||||
The following elements are the command-line arguments
|
||||
given to the program. *)
|
||||
|
||||
val executable_name : string
|
||||
(** The name of the file containing the executable currently running. *)
|
||||
|
||||
val interactive : bool ref
|
||||
(** This reference is initially set to [false] in standalone
|
||||
programs and to [true] if the code is being executed under
|
||||
the interactive toplevel system [ocaml]. *)
|
||||
|
||||
val os_type : string
|
||||
(** Operating system currently executing the Caml program. One of
|
||||
- ["Unix"] (for all Unix versions, including Linux and Mac OS X),
|
||||
- ["Win32"] (for MS-Windows, OCaml compiled with MSVC++ or Mingw),
|
||||
- ["Cygwin"] (for MS-Windows, OCaml compiled with Cygwin). *)
|
||||
|
||||
val word_size : int
|
||||
(** Size of one word on the machine currently executing the Caml
|
||||
program, in bits: 32 or 64. *)
|
||||
|
||||
val max_string_length : int
|
||||
(** Maximum length of a string. *)
|
||||
|
||||
val max_array_length : int
|
||||
(** Maximum length of a normal array. The maximum length of a float
|
||||
array is [max_array_length/2] on 32-bit machines and
|
||||
[max_array_length] on 64-bit machines. *)
|
||||
|
||||
val ocaml_version : string
|
||||
(** [ocaml_version] is the version of Objective Caml.
|
||||
It is a string of the form ["major.minor[.patchlevel][+additional-info]"],
|
||||
where [major], [minor], and [patchlevel] are integers, and
|
||||
[additional-info] is an arbitrary string. The [[.patchlevel]] and
|
||||
[[+additional-info]] parts may be absent. *)
|
||||
15
Task/Special-variables/OCaml/special-variables-2.ocaml
Normal file
15
Task/Special-variables/OCaml/special-variables-2.ocaml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
val max_int : int
|
||||
(** The greatest representable integer. *)
|
||||
|
||||
val min_int : int
|
||||
(** The smallest representable integer. *)
|
||||
|
||||
val max_float : float
|
||||
(** The largest positive finite value of type [float]. *)
|
||||
|
||||
val min_float : float
|
||||
(** The smallest positive, non-zero, non-denormalized value of type [float]. *)
|
||||
|
||||
val epsilon_float : float
|
||||
(** The difference between [1.0] and the smallest exactly representable
|
||||
floating-point number greater than [1.0]. *)
|
||||
Loading…
Add table
Add a link
Reference in a new issue