Version française
Home     About     Download     Resources     Contact us    
Browse thread
AW: AW: [Caml-list] generic Hashtbl.to_array
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Stéphane Glondu <Stephane.Glondu@c...>
Subject: Re: [Caml-list] generic Hashtbl.to_array
We shouldn't talk about Obj.magic, but...

Tom a écrit :
> I also corrected my implementation:
> 
> let mgc = Obj.magic 0      <<< So that the function is executed only once.

Does this provide any benefit? It seems to me that Obj.magic is the
(inlined) identity (so basically Obj.magic 0 is compiled directly into
the integer 0).

-- 
Stéphane