caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Martin Jambon <martin.jambon@ens-lyon.org>
To: David Teller <David.Teller@univ-orleans.fr>
Cc: OCaml <caml-list@inria.fr>
Subject: Re: [Caml-list] Read-only arrays ?
Date: Tue, 10 Apr 2007 14:35:11 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.58.0704101427500.21749@localhost> (raw)
In-Reply-To: <1176238988.5364.18.camel@Blefuscu>

On Tue, 10 Apr 2007, David Teller wrote:

> 	Hi everyone,
>
>   Is there a simple manner of providing read-only/write-only arrays ? I
> was hoping that a simple hack using co-variance or contra-variance would
> work, but, well, after a few minutes of thought, turns out that it
> doesn't.

This topic comes up from time to time... My take on this is that read-only
arrays or strings are not badly needed.

http://caml.inria.fr/pub/ml-archives/caml-list/2006/05/b34caf7bc9a5b651e91706392de65845.en.html

I wrote this small interface for R/W/RW strings last year, for fun; I
don't use it at all:

http://martin.jambon.free.fr/ocaml.html#gstring


Martin

--
Martin Jambon
http://martin.jambon.free.fr


  reply	other threads:[~2007-04-10 21:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-10 21:03 David Teller
2007-04-10 21:35 ` Martin Jambon [this message]
2007-04-10 21:57   ` [Caml-list] " Harrison, John R
2007-04-10 23:12     ` Martin Jambon
2007-04-11  5:08       ` David Teller
2007-04-11  5:31         ` Jacques Garrigue
2007-04-11  5:50           ` Jon Harrop

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=Pine.LNX.4.58.0704101427500.21749@localhost \
    --to=martin.jambon@ens-lyon.org \
    --cc=David.Teller@univ-orleans.fr \
    --cc=caml-list@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;
as well as URLs for NNTP newsgroup(s).