Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 53 lines (44 sloc) 1.032 kb
1c889bb add .nw files for commons/
pad authored
1
2 \todo{
3 SEMI objet.ml
4 cf also interface.ml
5 ofullcommon.ml
6 }
7
8 \todo{
9 ocollection.ml
10 SEMI ocollection.mli
11 oarray.ml
12 SEMI oarray.mli
13 oassoc.ml
14 SEMI oassoc.mli
15 osequence.ml
16 SEMI osequence.mli
17 oset.ml
18 SEMI oset.mli
19 ograph.ml
20 SEMI ograph.mli
21 ograph\_extended.ml
22 SEMI ograph\_extended.mli
23 ograph\_simple.ml
24 SEMI ograph\_simple.mli
25
26 seti.ml
27 %ocollection/
28 }
29
30
31 <<objet.mli>>=
32 (* TypeClass via objects. Cf also now interfaces.ml *)
33 class virtual objet :
34 object('o)
35 method invariant: unit -> unit
36 (* method check: unit -> unit *)
37
38 method of_string: string -> unit
39 method to_string: unit -> string
40 method debug: unit -> unit
41
42 (* ugly (but convenient): those methods allow to extend an interface without
43 * changing its interface. For instance in oassocbtree I want to
44 * provide a method to commit, but doing so will mean break the interface
45 * of oassoc. But if provide the commit code via a misc_op_hook, then
46 * I will not break the interface.
47 *)
48 method misc_op_hook: unit -> 'o
49 method misc_op_hook2: unit
50 end
51
52 @
Something went wrong with that request. Please try again.