From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA00175; Fri, 4 Jan 2002 14:35:55 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA01703 for ; Fri, 4 Jan 2002 14:35:53 +0100 (MET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g04DZmD03123; Fri, 4 Jan 2002 14:35:48 +0100 (MET) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA01828; Fri, 4 Jan 2002 14:35:47 +0100 (MET) Date: Fri, 4 Jan 2002 14:35:47 +0100 From: Xavier Leroy To: Ian Zimmerman Cc: OCAML Subject: Re: [Caml-list] Array.make Message-ID: <20020104143547.D941@pauillac.inria.fr> References: <86u1u9hdqp.fsf@speakeasy.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <86u1u9hdqp.fsf@speakeasy.org>; from itz@speakeasy.org on Sat, Dec 29, 2001 at 02:18:22PM -0800 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > 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