From: Brian Hurt <bhurt@spnz.org>
To: Oliver Bandel <oliver@first.in-berlin.de>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Warning on not-tail recursive functions
Date: Sat, 4 Aug 2007 10:52:55 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.64.0708041051240.9657@localhost> (raw)
In-Reply-To: <1186230861.46b4724d1561e@webmail.in-berlin.de>
On Sat, 4 Aug 2007, Oliver Bandel wrote:
> What ist with a
>
> ...
> ignore (maybe_tailcall())
> ...
>
That is not a tail call. You're using the value it returns.
Brian
> Does ignore REALLY ignore the values (does not generate them), so that
> this call is like a true tail-call, or will the maybe_tailcall
> generate and give back results to the ignore-call and then
> ignore throws away the stuff (then it would be NO tailcall).
Throwing away the result is using the result.
Brian
next prev parent reply other threads:[~2007-08-04 14:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-04 10:58 tmp123
2007-08-04 12:27 ` [Caml-list] " Brian Hurt
2007-08-04 12:34 ` Oliver Bandel
2007-08-04 13:26 ` Julien Moutinho
2007-08-04 14:52 ` Brian Hurt [this message]
2007-08-04 19:24 ` Oliver Bandel
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=Pine.LNX.4.64.0708041051240.9657@localhost \
--to=bhurt@spnz.org \
--cc=caml-list@yquem.inria.fr \
--cc=oliver@first.in-berlin.de \
/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