caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jerome Vouillon <Jerome.Vouillon@inria.fr>
To: David Monniaux <monniaux@clipper.ens.fr>,
	Liste CAML <caml-list@inria.fr>
Subject: Re: Array interface question
Date: Sun, 24 Jan 1999 16:44:03 +0100	[thread overview]
Message-ID: <19990124164403.11999@pauillac.inria.fr> (raw)
In-Reply-To: <Pine.GSO.4.04.9901231154460.5422-100000@brick.ens.fr>; from David Monniaux on Sat, Jan 23, 1999 at 11:57:28AM +0100

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




  reply	other threads:[~1999-01-24 21:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-22 19:10 Brian Rogoff
1999-01-22 19:21 ` Pierre Weis
1999-01-22 20:05   ` Brian Rogoff
1999-01-23 10:47   ` Anton Moscal
1999-01-23 10:57   ` David Monniaux
1999-01-24 15:44     ` Jerome Vouillon [this message]
1999-01-24 21:36       ` Pierre Weis
1999-01-28 19:57         ` Brian Rogoff
1999-01-23 14:00   ` Size of arrays Juan Jose Garcia Ripoll
1999-01-24 22:31     ` Pierre Weis

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=19990124164403.11999@pauillac.inria.fr \
    --to=jerome.vouillon@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=monniaux@clipper.ens.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;
as well as URLs for NNTP newsgroup(s).