86 lines
1.6 KiB
HTML
86 lines
1.6 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of Stdlib.Oo</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>Stdlib.Oo</H1>
|
|
Section: OCaml library (3o)<BR>Updated: 2020-01-30<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
Stdlib.Oo - no description
|
|
<A NAME="lbAC"> </A>
|
|
<H2>Module</H2>
|
|
|
|
Module Stdlib.Oo
|
|
<A NAME="lbAD"> </A>
|
|
<H2>Documentation</H2>
|
|
|
|
<P>
|
|
Module
|
|
<B>Oo</B>
|
|
|
|
<BR> :
|
|
<B>(module Stdlib__oo)</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val copy </I>
|
|
|
|
:
|
|
<B>(< .. > as 'a) -> 'a</B>
|
|
|
|
<P>
|
|
<P>
|
|
<B>Oo.copy o</B>
|
|
|
|
returns a copy of object
|
|
<B>o</B>
|
|
|
|
, that is a fresh
|
|
object with the same methods and instance variables as
|
|
<B>o</B>
|
|
|
|
.
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val id </I>
|
|
|
|
:
|
|
<B>< .. > -> int</B>
|
|
|
|
<P>
|
|
Return an integer identifying this object, unique for
|
|
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.
|
|
<P>
|
|
<P>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="2"><A HREF="#lbAC">Module</A><DD>
|
|
<DT id="3"><A HREF="#lbAD">Documentation</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:57 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|