From: Judicael Courant <Judicael.Courant@ens-lyon.fr>
To: ajenkins@cs.umass.edu
Cc: caml-list@inria.fr
Subject: Re: Suggested addition to Unix module
Date: Mon, 25 Aug 1997 13:55:49 +0200 (MET DST) [thread overview]
Message-ID: <199708251155.NAA04138@champagne.ens-lyon.fr> (raw)
In-Reply-To: <199708022207.SAA02234@noho-us147.javanet.com> (ajenkins@cs.umass.edu)
Hello,
>
>Also, is there a way to cast in OCaml instead of doing what I've done
>here, when you know the internal representations of two types are the
>same? I realize this could be abused, turning OCaml into C, but then
>what I did below is kind of silly too. Thank you.
>
you should consider using the function magic of module Obj... it is a
more generic implementation of your functions fd_of_descr and
descr_of_fd.
Judicael.
--
Judicael.Courant@ens-lyon.fr, http://www.ens-lyon.fr/~jcourant/
tel : (+33) 04 72 72 85 82
Beware of bugs in the above code; I have only proved it correct, not tried it.
-- Donald Knuth
prev parent reply other threads:[~1997-08-25 13:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-08-02 22:07 Adam P. Jenkins
1997-08-25 11:55 ` Judicael Courant [this message]
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=199708251155.NAA04138@champagne.ens-lyon.fr \
--to=judicael.courant@ens-lyon.fr \
--cc=ajenkins@cs.umass.edu \
--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