caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Diego Olivier Fernandez Pons <Diego-Olivier.FERNANDEZ-PONS@cicrp.jussieu.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Not allowed as right-hand side of 'let rec'
Date: Fri, 9 Aug 2002 10:48:15 +0200 (DST)	[thread overview]
Message-ID: <Pine.A32.3.95.1020809104713.29532A-100000@ibm1.cicrp.jussieu.fr> (raw)

    Bonjour,

Tom Hirschowitz a écrit :

> je comprends pas ce que le fait de prendre un type union change.

C'est que j'ai immédiatement pensé à mettre mon pointeur sur Nil
(comme on le ferait en C) puis l'affecter ensuite, seulement Caml ne
possédant pas de pointeur Nil, la première idée qui m'est venue en
tête fut de le simuler par un type Empty | List of ...

Au demeurant, la solution de Michel Quercia fait presque la même chose
en initialisant le tableau à [||] puis en le remplissant ensuite.

Enfin, j'avais cru lire dans un rapport de recherche que
l'introduction d'un type Nil était à l'étude. Qu'en est-il désormais ?

        Diego Olivier

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


             reply	other threads:[~2002-08-09  8:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-09  8:48 Diego Olivier Fernandez Pons [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-08-08 12:08 Diego Olivier Fernandez Pons
2002-08-08 12:56 ` Michel Quercia
2002-08-08 13:30   ` Alain Frisch

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.A32.3.95.1020809104713.29532A-100000@ibm1.cicrp.jussieu.fr \
    --to=diego-olivier.fernandez-pons@cicrp.jussieu.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).