Version française
Home     About     Download     Resources     Contact us    
Browse thread
Safe Obj.magic container ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jake Donham <jake.donham@s...>
Subject: Re: [Caml-list] Safe Obj.magic container ?
On Thu, Feb 28, 2008 at 6:23 AM, Damien Doligez <damien.doligez@inria.fr>
wrote:

> Example (on a 32-bit machine):
>
>        Objective Caml version 3.10.2+rc1
>
> # let x = Obj.repr 1;;
> val x : Obj.t = <abstr>
> # let y = Obj.repr 1.0;;
> val y : Obj.t = <abstr>
> # [| x; y |];;
> - : Obj.t array = [|<abstr>; <abstr>|]
> # [| y; x |];;
> Bus error


Could you please explain this behavior?

Jake