From: Steve Taylor <staylor@uidaho.edu>
To: caml-list@inria.fr
Subject: RE: [Caml-list] Factorial function
Date: Tue, 23 Jan 2007 10:59:15 -0800 [thread overview]
Message-ID: <005d01c73f20$93d56e50$bb804af0$@edu> (raw)
In-Reply-To: <8C584854-A0BC-4926-A4E7-60620DF4D995@gmail.com>
This function does not terminate where you think it does. What is your base case?
> -----Original Message-----
> From: caml-list-bounces@yquem.inria.fr [mailto:caml-list-bounces@yquem.inria.fr] On Behalf Of
> Lucas Holland
> Sent: Tuesday, January 23, 2007 10:54 AM
> To: caml-list@inria.fr
> Subject: [Caml-list] Factorial function
>
> Hi, why does this function:
>
> let rec fact n =
> n * fact (n-1);;
>
> yield an overflow error if called with n = 5?
>
> Thanks in advance,
>
> Lucas
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
next prev parent reply other threads:[~2007-01-23 19:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-23 18:53 Lucas Holland
2007-01-23 18:59 ` Steve Taylor [this message]
2007-01-23 19:26 ` [Caml-list] " William D. Neumann
2007-01-23 20:12 ` Jonathan Roewen
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='005d01c73f20$93d56e50$bb804af0$@edu' \
--to=staylor@uidaho.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