From: Thorsten Ohl <ohl@hep.tu-darmstadt.de>
To: caml-list@inria.fr
Subject: Re: Non generalizable type of constants?
Date: Mon, 15 Feb 1999 19:04:51 +0100 (CET) [thread overview]
Message-ID: <14024.25027.421367.684137@heplix4.ikp.physik.tu-darmstadt.de> (raw)
In-Reply-To: <199902151745.SAA19162@pauillac.inria.fr>
Pierre Weis <Pierre.Weis@inria.fr> writes:
> If you insist at abstracting the type Groupe.t,
I do, because this way I can hide details of different groups from
free constructions over them ...
> I'm not aware of any solution to your problem, except turning your
> unit_bad identifier into a function let unit_bad () = A.atom (M.unit).
Syntactically, It's not pretty, but I can live with it. I shied away
from this because I was not sure about the result of
module F = FreeRing ( some ring ...)
compare (F.unit_bad ()) (F.unit_bad ())
in this case. Does O'Caml guarantee that the expression will always
evaluate to 0? [ Currently it appears to, but can I depend on it? ]
> More generally, what you call constants are computed values, even if
> the computation is simple in your case, hence we have the general
> problem of references.
I had this confused, thanks for pointing it out!
-Thorsten
--
Thorsten Ohl, Physics Department, TU Darmstadt -- ohl@hep.tu-darmstadt.de
http://heplix.ikp.physik.tu-darmstadt.de/~ohl/ [<=== PGP public key here]
next prev parent reply other threads:[~1999-02-16 7:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-15 16:59 Thorsten Ohl
1999-02-15 17:45 ` Pierre Weis
1999-02-15 18:04 ` Thorsten Ohl [this message]
1999-02-16 7:16 ` 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=14024.25027.421367.684137@heplix4.ikp.physik.tu-darmstadt.de \
--to=ohl@hep.tu-darmstadt.de \
--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