Debian Codegraph @

src/doc/old-manual/mop.xmlf

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE book [
3 <!ENTITY % eclent SYSTEM "ecl.ent">
4 %eclent;
5 ]>
6 <book xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="en">
7 <chapter xml:id="ext.mop">
8 <title>Meta-Object Protocol (MOP)</title>
9
10 <section xml:id="ext.mop.intro">
11 <title>Introduction</title>
12
13 <para>The Meta-Object Protocol is an extension to &CommonLisp; which
14 provides rules, functions and a type structure to handle the object
15 system. It is a reflective system, where classes are also objects and can be
16 created and manipulated using very well defined procedures.</para>
17
18 <para>The Meta-Object Protocol associated to &CommonLisp;'s object system
19 was introduced in a famous book, The Art of the Metaobject Protocol &AMOP;,
20 which was probably intended for the &ANSI; specification but was drop out
21 because of its revolutionary and then not too well tested ideas.</para>
22
23 <para>The &AMOP; is present, in one way or another, in most &CommonLisp;
24 implementations, eithr using proprietary systems or because their
25 implementation of &CLOS; descended from &PCL; (Portable CommonLoops). It has
26 thus become a de facto standard and &ECL; should not be without it.</para>
27
28 <para>Unfortunately &ECL;'s own implemention originally contained only a
29 subset of the &AMOP;. This was a clever decision at the time, since the
30 focus was on performance and on producing a stable and lean implementation
31 of &CommonLisp;. Nowadays it is however not an option, specially given that
32 most of the &AMOP; can be implemented with little cost for both the
33 implementor and the user.</para>
34
35 <para>So &ECL; has an almost complete implementation of the &AMOP;. However,
36 since it was written from scratch and progressed according to user's request
37 and our own innovations, there might still be some missing functionality
38 which we expect to correct in the near future. Please report any feature you
39 miss as a bug through the appropriate channels.</para>
40
41 <para>When considering the Metaobject Protocol, the book itself should be
42 the main reference. The following sections contain only further extensions
43 or improvements over the paragraphs which were either conflicting or less
44 specified.</para>
45 </section>
46
47 <section xml:id="ext.mop.classes">
48 <title>Classes</title>
49
50 <para>[TODO: Document the class initialization / finalization protocol]</para>
51 </section>
52
53 <section xml:id="ext.mop.slots">
54 <title>Slots</title>
55
56 <para>[TODO: Document the slot descriptions and parameters.]</para>
57
58 </section>
59
60 <section xml:id="ext.mop.generic">
61 <title>Generic functions and methods</title>
62
63 <para>[TODO: Document the calling convetions for method functions.]</para>
64 </section>
65
66 <section xml:id="ext.mop.slots.sealed">
67 <title>Sealed slots and classes</title>
68
69 <para>[TODO: Document sealed slots]</para>
70 </section>
71 </chapter>
72 </book>
73 <!-- Keep this comment at the end of the file
74 Local variables:
75 mode: nxml
76 sgml-parent-document: "ecl.xml"
77 sgml-indent-step: 1
78 nxml-child-indent: 1
79 nxml-outline-child-indent: 1
80 fill-column: 79
81 End:
82 -->