caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Xavier Leroy <xavier.leroy@inria.fr>
To: Ian Zimmerman <itz@speakeasy.org>
Cc: OCAML <caml-list@inria.fr>
Subject: Re: [Caml-list] Array.make
Date: Fri, 4 Jan 2002 14:35:47 +0100	[thread overview]
Message-ID: <20020104143547.D941@pauillac.inria.fr> (raw)
In-Reply-To: <86u1u9hdqp.fsf@speakeasy.org>; from itz@speakeasy.org on Sat, Dec 29, 2001 at 02:18:22PM -0800

> According to the documentation (in 3.01 at least),
> 
> Array.make n a
> 
> raises an exception when n = 0.  Why?  It looks like an unnecessary
> special case.  The damned hysterical raisins again?

That was a documentation error, which was fixed in 3.02.  The case n = 0
works fine and returns a zero-sized array as expected.

> BTW, the documentation also doesn't say how Array.init behaves in this
> respect. 

Like Array.make, but you're correct that this should be written
explicitly in the doc.

- Xavier Leroy
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


      parent reply	other threads:[~2002-01-04 13:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-29 22:18 Ian Zimmerman
2001-12-30 12:58 ` David Mentré
2002-01-04 13:35 ` Xavier Leroy [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=20020104143547.D941@pauillac.inria.fr \
    --to=xavier.leroy@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=itz@speakeasy.org \
    /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;
as well as URLs for NNTP newsgroup(s).