caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Guillaume Yziquel <guillaume.yziquel@citycable.ch>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Magic with fun (type t) ... ?
Date: Thu, 27 Jan 2011 00:07:32 +0100	[thread overview]
Message-ID: <20110126230732.GL4195@localhost> (raw)
In-Reply-To: <20110126221756.GA5907@vaio.jimpryor.net>

Le Wednesday 26 Jan 2011 à 17:17:56 (-0500), Jim Pryor a écrit :
> 
> It appears that non-heap values are always getting magicked into ints.
> 
> Has this been noted before?

I noted this. It seems to me that the toplevel's behaviour has changed
in the 3.12 release. It doesn't seem to rely on available type
information to display the exception, but rather seems to inspect the
low-level layout of the exception's content. None and 0 are the same.
Strings are not.
 
I may be mistaken, but it seems to that I was raising exceptions in the
toplevel with arguments that were custom blocks. This made the toplevel
segfault when trying to read the custom block.
 
I feel that this is a regression from previous OCaml toplevel behaviour,
but I'm not so sure.

-- 
     Guillaume Yziquel


  parent reply	other threads:[~2011-01-26 23:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-26 22:17 Jim Pryor
2011-01-26 22:33 ` David Allsopp
2011-01-27  6:13   ` Alain Frisch
2011-01-27 23:56     ` Guillaume Yziquel
2011-01-26 22:34 ` Jim Pryor
2011-01-26 23:07 ` Guillaume Yziquel [this message]
2011-01-26 23:11 ` Gabriel Scherer

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=20110126230732.GL4195@localhost \
    --to=guillaume.yziquel@citycable.ch \
    --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).