From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: weis Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id WAA30115 for caml-redistribution; Sun, 24 Jan 1999 22:39:11 +0100 (MET) 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 QAA10071 for ; Sun, 24 Jan 1999 16:44:06 +0100 (MET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.8.7/8.8.7) with ESMTP id QAA09510; Sun, 24 Jan 1999 16:44:03 +0100 (MET) Received: (from vouillon@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA20336; Sun, 24 Jan 1999 16:44:03 +0100 (MET) Message-ID: <19990124164403.11999@pauillac.inria.fr> Date: Sun, 24 Jan 1999 16:44:03 +0100 From: Jerome Vouillon To: David Monniaux , Liste CAML Subject: Re: Array interface question References: <199901221921.UAA10085@pauillac.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1 In-Reply-To: ; from David Monniaux on Sat, Jan 23, 1999 at 11:57:28AM +0100 Sender: weis On Sat, Jan 23, 1999 at 11:57:28AM +0100, David Monniaux wrote: > On Fri, 22 Jan 1999, Pierre Weis wrote: > > > > Why is there no creation function which does not take a default > > > value for filling the array? > > Perhaps the solution is to have an improved implementation of the 'a > option type, where a NULL pointer would mean "None" and anything else > would be the element of type 'a. > > Is there anything wrong with this approach? [except that it could break > some interfaced C code that relies on NULL pointers in "private" types..] The problem is that you need to be able to differentiate None from Some None, Some (Some None), ... -- Jerome