GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing reasonml.github.io — Reason · Reason lets you write simple, fast and quality type safe code while leveraging both the JavaScript & OCaml ecosystems. Module Weakmodule Weak: sig .. endArrays of weak pointers and hash sets of weak pointers. Low-level functionstype 'a t
The type of arrays of weak pointers (weak arrays). A weak pointer is a value that the garbage collector may erase whenever the value is not used any more (through normal pointers) by the program. Note that finalisation functions are run before the weak pointers are erased, because the finalisation functions can make values alive again (before 4.03 the finalisation functions were run after). A weak pointer is said to be full if it points to a value, empty if the value was erased by the GC. Notes:
val create : int -> 'a t
val length : 'a t -> int
val set : 'a t -> int -> 'a option -> unit
val get : 'a t -> int -> 'a option
val get_copy : 'a t -> int -> 'a option
val check : 'a t -> int -> bool
val fill : 'a t -> int -> int -> 'a option -> unit
val blit : 'a t -> int -> 'a t -> int -> int -> unit
Weak hash setsA weak hash set is a hashed set of values. Each value may
magically disappear from the set when it is not used by the
rest of the program any more. This is normally used to share
data structures without inducing memory leaks.
Weak hash sets are defined on values from a The Unsynchronized accesses Unsynchronized accesses to weak hash sets are a programming error.
Unsynchronized accesses to a weak hash set may lead to an invalid weak hash
set state. Thus, concurrent accesses to weak hash sets must be synchronized
(for instance with a module type S = sig .. endThe output signature of the functor module Make: functor (H : Hashtbl.HashedType) -> S with type data = H.tFunctor building an implementation of the weak hash set structure. |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |