1996-04-22 04:15:41 -07:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
2011-07-27 07:17:02 -07:00
|
|
|
(* OCaml *)
|
1996-04-22 04:15:41 -07:00
|
|
|
(* *)
|
|
|
|
(* Jerome Vouillon, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
|
|
|
(* Copyright 1996 Institut National de Recherche en Informatique et *)
|
1999-11-17 10:59:06 -08:00
|
|
|
(* en Automatique. All rights reserved. This file is distributed *)
|
2001-12-07 05:41:02 -08:00
|
|
|
(* under the terms of the GNU Library General Public License, with *)
|
|
|
|
(* the special exception on linking described in file ../LICENSE. *)
|
1996-04-22 04:15:41 -07:00
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
|
|
|
(* $Id$ *)
|
|
|
|
|
2002-04-24 02:49:06 -07:00
|
|
|
(** Operations on objects *)
|
1996-04-22 04:15:41 -07:00
|
|
|
|
2001-12-03 14:16:03 -08:00
|
|
|
val copy : (< .. > as 'a) -> 'a
|
2001-10-26 15:38:48 -07:00
|
|
|
(** [Oo.copy o] returns a copy of object [o], that is a fresh
|
2011-12-22 01:30:51 -08:00
|
|
|
object with the same methods and instance variables as [o]. *)
|
2002-06-10 19:51:01 -07:00
|
|
|
|
2002-06-13 23:59:20 -07:00
|
|
|
external id : < .. > -> int = "%field1"
|
2002-06-12 00:55:55 -07:00
|
|
|
(** Return an integer identifying this object, unique for
|
2011-12-22 01:30:51 -08:00
|
|
|
the current execution of the program. The generic comparison
|
|
|
|
and hashing functions are based on this integer. When an object
|
|
|
|
is obtained by unmarshaling, the id is refreshed, and thus
|
|
|
|
different from the original object. As a consequence, the internal
|
|
|
|
invariants of data structures such as hash table or sets containing
|
|
|
|
objects are broken after unmarshaling the data structures.
|
|
|
|
*)
|
2002-06-20 08:44:29 -07:00
|
|
|
|
|
|
|
(**/**)
|
2012-03-14 09:03:15 -07:00
|
|
|
|
|
|
|
(* The following is for system use only. Do not call directly. *)
|
|
|
|
|
2002-06-20 08:44:29 -07:00
|
|
|
(** For internal use (CamlIDL) *)
|
2004-05-26 04:10:52 -07:00
|
|
|
val new_method : string -> CamlinternalOO.tag
|
|
|
|
val public_method_label : string -> CamlinternalOO.tag
|