From: Damien Doligez <damien.doligez@inria.fr>
To: caml-list <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] OCaml Documentation Request
Date: Mon, 19 Sep 2005 13:32:05 +0200 [thread overview]
Message-ID: <2BC1EB80-3703-4F99-94C7-DBFBBC721CFE@inria.fr> (raw)
In-Reply-To: <Pine.LNX.4.61.0509181606400.1141@eiger.cip.physik.uni-muenchen.de>
On Sep 18, 2005, at 16:28, Thomas Fischbacher wrote:
> The Array.init and Array.make documentation says more or less the
> same:
>
> ====>
> <<
> val init : int -> (int -> 'a) -> 'a array
>
>>>
>>>
>
> Array.init n f returns a fresh array of length n,
> with element
> number i initialized to the result of f i. In other
> terms,
> Array.init n f tabulates the results of f applied
> to the
> integers 0 to n-1.
> Raise Invalid_argument if n < 0 or n >
> Sys.max_array_length. If
> the return type of f is float, then the maximum
> size is only
> Sys.max_array_length / 2.
> <====
>
> Question: Is the statement about array max lengths accurate for 64-bit
> systems as well?
The last statement is false in theory, but in practice
Sys.max_array_length
and Sys.max_array_length/2 are both quasi-infinite on a 64-bit system.
-- Damien
prev parent reply other threads:[~2005-09-19 11:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-18 14:28 Thomas Fischbacher
2005-09-19 11:32 ` Damien Doligez [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2BC1EB80-3703-4F99-94C7-DBFBBC721CFE@inria.fr \
--to=damien.doligez@inria.fr \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox