Commit Graph

36 Commits (bdd9ca391e3a56253d7480b07bb1a8aac361904c)

Author SHA1 Message Date
Nicolas Ojeda Bar 30969895ac Add {Int32,Int64,Nativeint}.unsigned_{compare,div,rem} 2018-11-10 12:48:11 +01:00
Gabriel Scherer 6744597090
Merge pull request #2007 from Octachron/nme_integers
documentation: move 32/64/native literals out of the extension chapter
2018-08-27 14:57:11 +02:00
Jérémie Dimino 9124ab82d1
Deprecate Pervasives (#1605)
- inline Pervasives in Stdlib and re-add Pervasives as a deprecated
module that aliases all elements of Stdlib except the stdlib modules.

- remove special case for Stdlib.Pervasives in printtyp.ml
2018-08-27 12:42:14 +01:00
octachron e407ab3829 documentation: promote 32/64/native literals
* Move the description of these literals to refman/const.etex and
refman/lex.etex
* Mention their existence in library/builtins.etex
* Add examples to Int32, Int64 and NativeInt module documentation
2018-08-27 11:08:11 +02:00
David Allsopp b5d1929e87 Whitespace and overlong line fixes. 2018-06-14 15:15:34 +01:00
octachron e30e82a219 PR#7363: start documentation headers at {1 2017-10-04 13:05:05 +02:00
Fourchaux 72cfdd56e9 Typos and basic grammar error fixing (#1280) 2017-08-10 11:59:23 +01:00
Jeremy Yallop 254d828341 int_of_string: document the behaviour of 0u with high unsigned values. 2017-06-16 16:32:09 +01:00
Max Mouratov c329255521 Fixed grammar in user-facing comments and README 2017-04-06 14:16:18 +02:00
Max Mouratov d29f3f7104 Fixed erroneous comments 2017-03-28 16:02:05 +02:00
Alain Frisch 69263a9893 Option-returning variants of stdlib functions (#885)
Provide an xxx_opt alternative for functions raising Not_found
and many instances of Failure/Invalid_arg.

The only exception is the rarely used Buffer.add_substitute, where
the [Not_found] can really be interpreted as an error condition.

Most new functions are implemented directly (instead of wrapping the
raising version).  This is for performance reasons and also to avoid
destroying the stacktrace (if the function is used in an exception
handler).  One could instead implement the raising versions on top of
the new functions, but there might be a small penalty.
2016-11-07 16:11:35 +00:00
Damien Doligez 5401ce8473 Update headers for the new license.
Remains to be done: remove all headers in testsuite/tests.
2016-02-18 16:59:16 +01:00
Jeremie Dimino 665176d77a Switch a few externals to [@@unboxed]
Switched the following functions:
- {Nativeint,Int32,Int64}.{of,to}_float
- Int{32,64}.float_of_bits
- Int{32,64}.bits_of_float
2015-11-03 17:20:05 +00:00
Gabriel Scherer 85b75d7963 PR#6494: Add equal function in modules Big_int, Bytes, Char, Digest, Int32, Int64, Nativeint, Num and String
(Romain Calascibetta)

From: Romain Calascibetta <romain.calascibetta@gmail.com>

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15725 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-12-21 11:46:08 +00:00
Damien Doligez cbfe627f92 merge changes from branch 4.02 from branching (rev 14852) to 4.02.0+rc1 (rev 15121)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15125 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-08-22 13:45:02 +00:00
Damien Doligez c63f9e0957 fix a few problems with whitespace and over-long lines
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13393 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-09 22:38:52 +00:00
Damien Doligez def31744f9 remove all $Id keywords
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13013 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-10-15 17:50:56 +00:00
Damien Doligez 3b507dd1aa renaming of Objective Caml to OCaml and cleanup of copyright headers
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11156 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-27 14:17:02 +00:00
Damien Doligez 0e5ca9dca5 nettoyage
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7164 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-10-25 18:34:07 +00:00
Damien Doligez 5a678d29f5 depollution suite (PR#1914 et PR#1956)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6045 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-01-01 16:42:43 +00:00
Xavier Leroy 6c5d5d9e03 MAJ documentation:
- comportement de nan avec les comparaisons et avec la fonction compare
- exceptions levees par les acces hors-bornes
- exceptions de debordement dans les conversions string -> int


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5963 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-11-21 16:06:08 +00:00
Xavier Leroy 30bddc23a3 Deprecated 'format' function some more
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5826 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-09-09 09:18:58 +00:00
Xavier Leroy 376626863e Nettoyages documentation
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4954 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-06-26 14:52:34 +00:00
Xavier Leroy 9e3dc0cd97 Ajout d'un type t et d'une fonction compare pour permettre l'utilisation de ce module avec la signature OrderedType
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4948 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-06-26 09:13:59 +00:00
Xavier Leroy 7501784c80 MAJ en-tetes pour mentionner la 'special exception' sur la LGPL
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4144 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-12-07 13:41:02 +00:00
Maxence Guesdon ef3d334d4a commentaires après
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4083 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-12-03 22:16:03 +00:00
Xavier Leroy 1477a8ba42 Marquer 'deprecated' la fonction 'format'
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3958 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-10-30 14:32:37 +00:00
Maxence Guesdon b31320d10b Modification emplacement et syntaxe commentaires pour OCamldoc.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3938 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-10-29 17:58:08 +00:00
Maxence Guesdon b95796f461 Modification emplacement et syntaxe commentaires pour OCamldoc
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3926 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-10-26 22:38:48 +00:00
Xavier Leroy 8d0158489e Documentation plus precise
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3389 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-02-05 08:53:55 +00:00
Xavier Leroy bc8f2e22d4 Ajout de Nativeint.size
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3373 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-01-21 12:34:41 +00:00
Xavier Leroy f4ca3d65bd Ajout {Int32,Int64,Nativeint}.{of_float,to_float}
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3103 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-04-18 08:51:28 +00:00
Xavier Leroy ba6c470611 Renommage min,max->min_int,max_int
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3095 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-04-16 14:37:21 +00:00
Xavier Leroy 96cb7c30af Ajout des conversions int <-> int32 <-> int64
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2901 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-03-05 19:17:54 +00:00
Xavier Leroy b09f44025c Ajout des types predefinis int32, int64, nativeint.
Ajout des primitives correspondantes dans le type lambda.
Optimisation de ces primitives dans le compilateur natif


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2839 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-02-21 18:14:56 +00:00
Xavier Leroy 15f811734e Ajout Int32, Int64 et Nativeint
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2810 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2000-02-13 16:44:06 +00:00