From: Thorsten Ohl <ohl@physik.uni-wuerzburg.de>
To: caml-list@inria.fr
Cc: John Prevost <j.prevost@cs.cmu.edu>
Subject: Re: [Caml-list] Creating mutually dependent objects?
Date: Sun, 4 Aug 2002 04:08:24 +0200 [thread overview]
Message-ID: <15692.35992.183045.427094@wptx47.physik.uni-wuerzburg.de> (raw)
In-Reply-To: <86eldfa1ho.fsf@laurelin.dementia.org>
John Prevost <j.prevost@cs.cmu.edu> writes:
> Value constructors [...] are not allowed to run code--they just plop
> the value down in the appropriate place. And even then, if they're
> hidden behind functions, they can't be used this way, since it's
> *syntactic analysis* of the code that allows these constructions to
> be used in a let rec.
I see. My error was to overlook that a typechecker can't figure out
that the mutual references are never used as arguments to non trivial
functions.
> Hope this was helpful,
It was.
Thanks,
-Thorsten
--
Thorsten Ohl, Physics Dept., Wuerzburg Univ. -- ohl@physik.uni-wuerzburg.de
http://theorie.physik.uni-wuerzburg.de/~ohl/ [<=== PGP public key here]
-------------------
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
prev parent reply other threads:[~2002-08-04 22:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-02 17:19 Thorsten Ohl
2002-08-03 23:28 ` Jacques Garrigue
2002-08-04 0:53 ` John Prevost
2002-08-04 2:08 ` Thorsten Ohl [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=15692.35992.183045.427094@wptx47.physik.uni-wuerzburg.de \
--to=ohl@physik.uni-wuerzburg.de \
--cc=caml-list@inria.fr \
--cc=j.prevost@cs.cmu.edu \
/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