From: rixed@happyleptic.org
To: caml-list@inria.fr
Subject: Re: [Caml-list] Strange behavior of mutualy recursive definitions
Date: Wed, 27 Apr 2011 23:28:52 +0200 [thread overview]
Message-ID: <20110427212852.GC8872@yeeloong.happyleptic.org> (raw)
In-Reply-To: <20110427205416.GL4023@localhost>
Thank you for the explanation but I fear they are not enough for me to
understand. Specifically, I do not understand why to compile "let rec
toto = inc titi and titi = dec toto" this is not enough to know the
address of titi and toto functions. I don't see what's the difference
from let rec toto = titi inc ..." in this regard.
> The second version only defines toto as a function that calls titi. No
> need to have titi evaluated to be able to evalue toto. You only need to
> know where it is declared. That's the main difference.
But in the first version, toto is a function that calls inc with, as
first parameter, the address of titi. I don't see why it's more complex.
And suppose I would understand this, I'd still have to figure out why
merely adding the mute variable x suddenly turns the definitions valid.
next prev parent reply other threads:[~2011-04-27 21:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-27 20:46 rixed
2011-04-27 20:54 ` Guillaume Yziquel
2011-04-27 21:28 ` rixed [this message]
2011-04-27 21:51 ` Guillaume Yziquel
2011-04-28 4:05 ` rixed
2011-04-28 6:24 ` [Caml-list] " Jeffrey Scofield
2011-04-28 8:45 ` Guillaume Yziquel
2011-04-28 8:57 ` rixed
[not found] ` <244248468.756230.1303963610378.JavaMail.root@zmbs4.inria.fr>
2011-04-28 7:26 ` [Caml-list] " Fabrice Le Fessant
2011-04-28 8:53 ` rixed
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=20110427212852.GC8872@yeeloong.happyleptic.org \
--to=rixed@happyleptic.org \
--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