From: Jean-Francois Monin <JeanFrancois.Monin@cnet.francetelecom.fr>
To: Vyskocil Vladimir <vyskocil@math.unice.fr>
Cc: Caml list <caml-list@inria.fr>
Subject: Re: Constante NIL
Date: Wed, 2 Jun 1999 09:27:10 +0200 [thread overview]
Message-ID: <199906020727.JAA24288@lsun565.lannion.cnet.fr> (raw)
In-Reply-To: <37529AB8.B306AD5F@math.unice.fr>
> N'est t'il pas concevable de rajouter a Objectif Caml une constante
> NIL, UNDEF ou je sais pas trop comment la nommer dont la valeur serait
> '_a. Ceci permettrait d'initialiser "par defaut", par exemples,
Ca m'est arrive d'utiliser Obj.magic, par exemple :
type ('a, 'b) cell =
{mutable lft : 'b; c : key; mutable v : 'a; mutable rgt : 'b}
let any_c : unit -> key = Obj.magic
let any_v : unit -> 'a = Obj.magic
let env_init () = {lft=Empty; c=any_c (); v=any_v (); rgt=Empty}
--
Jean-Francois Monin, CNET DTL/MSV, Tel +33 2 96 05 26 79
2 av. Pierre Marzin, 22307 Lannion, France Fax +33 2 96 05 39 45
SANS TRAIT D'UNION : JeanFrancois.Monin@cnet.francetelecom.fr
next prev parent reply other threads:[~1999-06-02 16:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-05-31 14:20 Vyskocil Vladimir
1999-06-01 16:16 ` Francois Rouaix
1999-06-02 7:27 ` Jean-Francois Monin [this message]
1999-06-02 19:02 ` Xavier Leroy
1999-06-14 20:48 ` 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=199906020727.JAA24288@lsun565.lannion.cnet.fr \
--to=jeanfrancois.monin@cnet.francetelecom.fr \
--cc=caml-list@inria.fr \
--cc=vyskocil@math.unice.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