caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Florian Hars <florian@hars.de>
To: caml-list@inria.fr
Subject: [Caml-list] Why isn't 4=4 in a bytecode program?
Date: Thu, 21 Jun 2001 14:21:03 +0200	[thread overview]
Message-ID: <20010621142103.A29289@hars> (raw)

(I think I have sent this before with the wrong sender address, so a 
copy may still be lingering in the list owners inbox, please delete it)

I'm lost, what happens here:

58       <|b|>if p = l then true
(ocd) print p
p : int = 4
(ocd) print l
l : int = 4
(ocd) step
Time : 396277983 - pc : 68528 - module Stringhilfsfunktionen
59       else <|b|>if pat.[p] <> s.[p] then false
(ocd) step
Time : 396277984
Program end.
Uncaught exception: Invalid_argument("String.get")

This happens with
$ ocamlc -v
The Objective Caml compiler, version 3.01
Standard library directory: /usr/lib/ocaml
$  dpkg -l ocaml | grep ocaml
ii  ocaml          3.01-6         ML language implementation with a class-base

The program works if I compile it with ocamlopt (and I think I have
turned -unsafe off).

Yours, Florian Hars.

-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


             reply	other threads:[~2001-06-21 12:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-21 12:21 Florian Hars [this message]
2001-06-21 12:49 ` Xavier Leroy
2001-06-21 14:04   ` Florian Hars

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=20010621142103.A29289@hars \
    --to=florian@hars.de \
    --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;
as well as URLs for NNTP newsgroup(s).