Module Oo


module Oo = struct ... end 
Types
label Abstract
table Abstract
meth Abstract
t Abstract
obj Abstract
params = {
compact_table
(mutable)
:  bool ;
copy_parent
(mutable)
:  bool ;
clean_when_copying
(mutable)
:  bool ;
retry_count
(mutable)
:  int ;
bucket_small_size
(mutable)
:  int ;
}
stats = {
classes :  int ;
labels :  int ;
methods :  int ;
inst_vars :  int ;
buckets :  int ;
distrib :  int array ;
small_bucket_count :  int ;
small_bucket_max :  int ;
}

Simple values
params params

Functions

copy : (< .. > as 'a) -> 'a
Oo.copy o returns a copy of object o, that is a fresh object with the same methods and instance variables as o

new_method : string -> label

new_variable : table -> string -> int

get_variable : table -> string -> int

get_method_label : table -> string -> label

get_method : table -> label -> meth

set_method : table -> label -> meth -> unit

narrow : table -> string list -> string list -> string list -> unit

widen : table -> unit

add_initializer : table -> (obj -> unit) -> unit

create_table : string list -> table

init_class : table -> unit

create_object : table -> obj

run_initializers : obj -> table -> unit

send : obj -> label -> t

stats : unit -> stats

show_buckets : unit -> unit