From: Jonathan Roewen <jonathan.roewen@gmail.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] toplevellib.cma broken?
Date: Fri, 23 Dec 2005 10:46:55 +1300 [thread overview]
Message-ID: <ad8cfe7e0512221346y255fd3d6s578f72a47946794c@mail.gmail.com> (raw)
In-Reply-To: <ad8cfe7e0512220021t10bd53e4i9dbbed9fefc4c444@mail.gmail.com>
> But I have one really weird problem: all the symbols in Pervasives
> aren't defined.
>
> Also: it seems to choke on strings, and invoking functions.
>
> For example: "Base_io.print_int 45;;" gets printed, but then it locks up.
Ahh, I'm making progress on the debugging front.
Around line 237 in toploop.ml:
let execute_phrase ... =
...
match res with
| Result v ->
if print_outcome then
| [Tstr_eval exp] ->
let outv = outval_of_value newenv v exp.exp_type in
....
The outval_of_value is apparently getting stuck in an infinite loop.
I've yet to disseminate Genprintval module... but any clues while I'm
searching would be helpful =)
This happens on entering: `"bob";;' and `Base_io.print_int 45;;' at the prompt.
(And yes, the floating point is my lack of an implementation of strtod).
BTW: Base_io is my replacement of Pervasives IO functions.
Jonathan
next prev parent reply other threads:[~2005-12-22 21:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-22 5:57 Jonathan Roewen
2005-12-22 5:59 ` Jonathan Roewen
2005-12-22 8:21 ` Jonathan Roewen
2005-12-22 21:46 ` Jonathan Roewen [this message]
2005-12-23 0:54 ` 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=ad8cfe7e0512221346y255fd3d6s578f72a47946794c@mail.gmail.com \
--to=jonathan.roewen@gmail.com \
--cc=caml-list@yquem.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