1995-08-09 08:06:35 -07:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* Caml Special Light *)
|
|
|
|
(* *)
|
|
|
|
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
|
|
|
(* Copyright 1995 Institut National de Recherche en Informatique et *)
|
|
|
|
(* Automatique. Distributed only by permission. *)
|
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
|
|
|
(* $Id$ *)
|
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
(* Operations on internal representations of values *)
|
|
|
|
|
|
|
|
type t
|
|
|
|
|
|
|
|
external repr : 'a -> t = "%identity"
|
|
|
|
external magic : 'a -> 'b = "%identity"
|
|
|
|
external is_block : t -> bool = "obj_is_block"
|
1995-06-18 07:45:56 -07:00
|
|
|
external tag : t -> int = "obj_tag"
|
1995-07-27 10:44:04 -07:00
|
|
|
external size : t -> int = "%obj_size"
|
|
|
|
external field : t -> int -> t = "%obj_field"
|
|
|
|
external set_field : t -> int -> t -> unit = "%obj_set_field"
|
1995-05-04 03:15:53 -07:00
|
|
|
external new_block : int -> int -> t = "obj_block"
|