| [Top] | [Contents] | [Index] | [ ? ] |
EIEIO is a framework for writing object oriented applications in emacs lisp, and is a result of my taking various object oriented classes at work and my attempt to understand some of it better by implementing it. The real reason I started eieio is because someone in one of my classes said "I bet emacs can't do that!". Well then, I just had to prove them wrong!
1. Introduction Why use eieio? Basic overview, samples list. 2. CLOS compatibility What are the differences? 3. Building Classes How to write new class structures. 4. Default Superclass The root superclasses. 5. Making New Objects How to construct new objects. 6. Accessing Slots How to access a slot. 7. Writing Methods How to write a CLOS style method. 8. Predicates and Utilities Class-p, Object-p, etc-p. 9. Association Lists List of objects as association lists. 10. Introspection Looking inside a class. 11. Signals When you make errors 12. Base Classes Additional classes you can inherit from. 13. Browsing class trees Browsing your class lists. 14. Class Values Displaying information about a class or object. 15. Customizing Objects Customizing objects. 16. Documentation Automatically creating texinfo documentation 17. Naming Conventions Name your objects in an Emacs friendly way. 18. Demo Programs Some examples using eieio. Function Index
As of this writing, updates can be found at: ftp://ftp.ultranet.com/pub/zappo.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
EIEIO is a CLOS (Common Lisp Object System) compatibility layer. Due to restrictions in the Emacs Lisp language, CLOS cannot be completely supported, and a few functions have been added in place of setf.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
defclass tag support
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Includes an MS Visual Studio like bookmark facility.
eieio-speedbar
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
As you read this, it is important to know that I have just recently learned some of the CLOS syntax, but have never used it myself outside of the EIEIO framework. I'm primarily and Emacs Lisp hacker who wrote EIEIO to help myself learn some of the mechanics of Object Oriented programming.
Currently, the following functions should behave almost as expected from CLOS.
defclass
typep function from the `cl'
package. @xref{(cl)Type Predicates}. It therefore has the same issues as
that package. Extensions include the ability to provide object names.
Defclass also supports class options, but does not currently use values
of :metaclass, and :default-initargs.
make-instance
defgeneric
:AROUND.
defmethod
:AROUND tag is not supported.
call-next-method
setf
(setf (slot-value object slot) t) should
work.
CLOS supports the describe command, but eieio only provides
eieio-describe-class, and eieio-describe-generic. These
functions are adviced into describe-variable, and
describe-function.
When creating a new class (see section 3. Building Classes) there are several new keywords supported by EIEIO.
In EIEIO tags are in lower case, not mixed case.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
A class in EIEIO has a similar structure to that found in other
languages. A new class is created with defclass
This function is specified by CLOS, and EIEIO conforms in structure.
Creates a new class called class-name. The created variable's
documentation string is set to a modified version of the doc string
found in options-or-doc. Each time a slot is defined the
variables documentation string is updated to include the methods
documentation as well.
The parent class for class-name is superclass-list which
must be a list. Each element of this list must be a class. These
classes form the parents of the class being created. Every slot in
parent is replicated in the new class. If two parents share the same
slot name, the parent which appears in the list first sets the attributes
for that slot. If a slot in the new class' slot list matches a parent,
then the new specifications for the child class override that of the
parent.
slot-list is a list of lists. Each sublist defines an attribute.
These lists are of the form (name :tag1 value1 :tag2 value2 :tagn
valuen). Some valid CLOS tags are:
:initarg
:.
:initform
:initform (1 2 3) |
:initform + |
Lastly, using the function lambda-default instead of
lambda will let you specify a lambda expression to use as the
value, without evaluation.
:type
symbol
number
my-class-name
(or null symbol)
function
lambda-default expression.
:allocation
:documentation
Some tags whose behaviors do not yet match CLOS are:
:accessor
:writer
:reader
Some tags which are unique to EIEIO are:
:custom
defcustom for details. This specifier is
equivalent to the :type field of a defcustom call.
:label
:group
defcustom's :group command, this organizes different
slots in an object into groups. When customizing an object, only the
slots belonging to a specific group need be worked with, simplifying the
size of the display.
:protection
When using a slot referencing function, if the value behind slot is private or protected, then the current scope of operation must be within a method of the calling object.
Valid values are:
:public
:protected
:private
Additionally, CLOS style class options are available. These are various options attached to a class. These options can occur in place or in addition to a documentation string. If both occur, then the options appear before the documentation string. In CLOS, documentation is one of the options available to a class, so the ability to have a standalone documentation string is specific to Emacs.
Possible class options are:
:documentation
:allow-nil-initform
If this option is non-nil, and the :initform is nil, but
the :type is specifies something such as string then allow
this to pass. The default is to have this option be off. This is
implemented as an alternative to unbound slots.
:abstract
Tags a class as being abstract, or uninstantiable.
:custom-groups
class-option command,
however, to see what groups are available.
:metaclass
standard-class.
:default-initargs
:initform.
See section 2. CLOS compatibility, for more details on CLOS tags versus EIEIO specific tags.
The whole definition may look like this:
(defclass data-object ()
((value :initarg :value
:initform nil
:accessor get-value
:documentation
"Lisp object which represents the data this object maintains."
:protection :protected)
(reference :initarg :reference
:initform nil
:type list
:custom (repeat object)
:documentation
"List of objects looking at this object.
The method `update-symbol' is called for each member of `reference' whenever
`value' is modified."
:protection :protected)
)
"Data object which tracks referencers.")
|
defclass will throw an error if a tag
in a slot specifier is unsupported.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
All defined classes, if created as a superclass (With no specified
parent class) will actually inherit from a special superclass stored in
eieio-default-superclass. This superclass is actually quite
simple, but with it, certain default methods or attributes can be added
to all objects at any time, without updating their code in the future
(If there is a change). In CLOS, this would be named
STANDARD-CLASS and is aliased.
Currently, the default superclass is defined as follows:
(defclass eieio-default-superclass nil nil ) "Default class used as parent class for superclasses. It's slots are automatically adopted by such superclasses but not stored in the `parent' slot. When searching for attributes or methods, when the last parent is found, the search will recurse to this class.") |
When creating an object of any type, you can use it's constructor, or
make-instance. This, in turns calls the method
initialize-instance, which then calls the method
shared-initialize.
shared-initialize.
These methods are used to override errors:
invalid-slot-name. See section 11. Signals.
You may override this behavior, but it is not expected to return in the current implementation.
This function takes arguments in a different order than in CLOS.
unbound-slot signal. If
overridden it's return value will be returned from the function
attempting to reference its value.
no-method-definition signal. The return value of this function
becomes the return value of the non-existent method.
call-next-method is
made, and there is no next method that can be called. The return
value becomes the return value of call-next-method.
Additional useful methods are:
initialize-instance. The only
other change is to modify the name with an incrementing numeric.
#<class-name "objname"> |
(defclass data-object () (value) "Object containing one data slot.") (defmethod object-print ((this data-object) &optional strings) "Return a string with a summary of the data object as part of the name." (apply 'call-next-method this (cons (format " value: %s" (render this)) strings))) |
here is what some output could look like:
(object-print test-object) => #<data-object test-object value: 3> |
read and
eval to recover the object. Only slots with :initargs
are written to the stream.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Once we have defined our classes, it's time to create objects with the
specified structure. After we call defclass two new functions
are created, one of which is classname. Thus, from the example at
the end of the previous chapter See section 3. Building Classes, we would have
the functions data-object and data-object-p.
This creates and returns a new object. This object is not assigned to
anything, and will be garbage collected if not saved. This object will
be given the string name object-name. There can be multiple
objects of the same name, but the name slot provides a handy way to
keep track of your objects. slots is just all the slots you
wish to preset. Any slot set as such WILL NOT get it's default value,
and any side effects from an attributes default function will not occur.
An example pair would appear simply as :value 1. Of course you
can do any valid lispy thing you want with it, such as
:value (if (boundp 'special-symbol) special-symbol nil)
Example of creating an object from a class, 3. Building Classes:
(data-object "test" :value 3 :reference nil) |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
There are several ways to access slot values in an object. The naming convention and argument order is similar to that found in Emacs Lisp for referencing vectors. The basics for referencing, setting, and calling methods are all accounted for.
This sets the value behind slot to value in object.
oset returns value.
This sets the slot slot in class which is initialized with
the :initform tag to value. This will allow a user to set
both public and private defaults after the class has been constructed.
This function is intrusive, and is offered as a way to allow users to
configure the default behavior of packages built with classes the same
way setq-default is used for buffer-local variables.
For example, if a user wanted all data-objects (see section 3. Building Classes) to inform a special object of his own devising when they
changed, this can be arranged by simply executing this bit of code:
(oset-default data-object reference (list my-special-object)) |
This recalls the value in slot slot in object and returns it. If object is a class, and slot is a class allocated slot, then oref will return that value. If object is a class, and slot is not class allocated, a signal will be thrown.
slot. This can be different from the value returned by
oref. object can also be a class symbol or an instantiated
object.
These next accessors are defined by CLOS to reference or modify slot values, and use the previously mentioned set/ref routines.
oref, the symbol for slot must be quoted in.
slot-value if
you don't want to use the cl package's setf function. This
function sets the value of slot from object. Unlike
oset, the symbol for slot must be quoted in.
setf to assign to these values, but
in Emacs, you may only read the values, or set the local variable to a
new value.
(defclass myclass () (x :initarg 1)) (setq mc (make-instance 'myclass)) (with-slots (x) mc x) => 1 (with-slots ((something x)) mc something) => 1 |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Writing a CLOS style method is similar to writing a function. The differences are that there are some extra options and there can be multiple implementations of a single method which interact interestingly with each other.
Each method created verifies that there is a generic method available to attach to. A generic method has no body, and is merely a symbol upon which methods are attached.
method is the unquoted symbol to turn into a function. arglist is the default list of arguments to use (not implemented yet). doc-string is the documentation used for this symbol.
A generic function acts as a place holder for methods. There is no need
to call defgeneric yourself, as defmethod will call it if
necessary. Currently the argument list is unused.
defgeneric will prevent you from turning an existing emacs lisp
function into a generic function.
method is the name of the function to be created.
:BEFORE | :AFTER represent when this form is to be called. If neither of these symbols are present, then the default priority is, before :AFTER, after :BEFORE, and is represented in CLOS as PRIMARY.
If :STATIC is used, then the first argument when calling this
function can be a class or an object. Never treat the first argument
of a STATIC method as an object, always used oref-default or
oset-default. A Class' construction is defined as a static
method.
arglist is the argument list. Unlike CLOS, only the FIRST
argument may be type-cast, and it may only be type-cast to an EIEIO
object. An arglist such as (a b) would classify the function
as generic call, which has no object it can talk to (none is passed
in) and merely allows the creation of side-effects. If the arglist
appears as ((this data-object) b) then the form is stored as
belonging to the class data-object.
The first argument does not need to be typecast. A method with no
typecast is a generic. If a given class has no implementation,
then the generic will be called when that method is used on a given
object of that class.
If two defmethods appear with arglists such as (a b)
and (c d) then one of the implementations will be overwritten,
but generic and multiple type cast arglists can co-exist.
When called, if there is a method cast against the object's parent class, but not for that object's class, the parent class' method will be called. If there is a method defined for both, only the child's method is called.
doc-string is the documentation attached to the implementation. All method doc-strings are concatenated into the generic method's function documentation.
forms is the body of the function.
If multiple methods and generics are defined for the same method name, they are executed in this order:
If in any situation a method does not exist, but a generic does, then the generic is called in place of the method.
If no methods exist, then the signal no-method-definition is
thrown. 11. Signals
See the file `eieio-test.el' for an example testing these differently tagged methods.
While running inside a CLOS method, calling this function will call the method associated with the parent of the class of the currently running method with the same parameters.
If no next method is available, but a generic is implemented for the
given key (Such as :BEFORE), then the generic will be called.
OPTIONAL arguments replacement-args can be used to replace the arguments the next method would be called with. Useful if a child class wishes to add additional behaviors through the modification of the parameters. This is not a feature of CLOS.
For example code See section 4. Default Superclass.
Return t if there is a next method we can call.
In this implementation, not all features of CLOS exist.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Now that we know how to create classes, access slots, and define methods, it might be useful to verify that everything is doing ok. To help with this a plethora of predicates have been created.
find-class will have the same effect.
nil is returned if errorp is
nil.
nil if class is a class type.
nil if obj is an object.
nil if obj-or-class contains slot in its class.
nil if OBJECT's SLOT is bound.
Setting a slot's value makes it bound. Calling slot-makeunbound will
make a slot unbound.
OBJECT can be an instance or a class.
(class-option eieio-default-superclass :documentation) |
Will fetch the documentation string for eieio-default-superclass.
object-print to get
and object's print form, as this allows the object to add extra display
information into the symbol.
object-class
object-class except this is a macro, and no
type-checking is performed.
nil if
it is a superclass.
class-parent except it is a macro and no type checking
is performed.
class-children, but with no checks.
t if obj's class is the same as class.
same-class-p except this is a macro and no type checking
is performed.
t if obj inherits anything from class. This
is different from same-class-p because it checks for inheritance.
t if child is a subclass of class.
t if method-symbol is a generic function, as
opposed to a regular emacs list function.
It is also important to note, that for every created class, a two
predicates are created for it. Thus in our example, the function
data-object-p is created, and return t if passed an object
of the appropriate type. Also, the function data-object-child-p
is created which returns t if the object passed to it is of a
type which inherits from data-object.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Lisp offers the concept of association lists, with primitives such as
assoc used to access them. Eieio provides a few such functions
to help with using lists of objects easily.
car is
the value of slot, and the cdr is the object it was
extracted from. This is useful for generating completion tables.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Introspection permits a programmer to peek at the contents of a class without any previous knowledge of that class. While EIEIO implements objects on top of vectors, and thus everything is technically visible, some functions have been provided. None of these functions are a part of CLOS.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
There are new signal types that can be caught when using eieio.
Overload the method no-method-definition to protect against this
signal.
call-next-method is called
and there is no next method to be called.
Overload the method no-next-method to protect against this signal.
In EIEIO, this is also used of a slot specifier has an invalid value
during a defclass.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Asside from eieio-default-superclass, EIEIO comes with some
additional classes that you can use. By using multiple inheritance, it
is possible to use several features at the same time.
12.1 eieio-instance-inheritorEnable value inheritance between instances. 12.2 eieio-singletonOnly one instance of a given class. 12.3 eieio-persistentEnable persistence for a class. 12.4 eieio-namedUse the object name as a :name field. 12.5 eieio-speedbarEnable speedbar support in your objects.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
eieio-instance-inheritor This class is in package `eieio-base'.
Instance inheritance is a mechanism whereby the value of a slot in object instance can reference the parent instance. If the parent's slot value is changed, then the child instance is also changed. If the child's slot is set, then the parent's slot is not modified.
nil.
To use this class, inherit from it with your own class.
To make a new instance that inherits from and existing instance of your
class, use the clone method with additional parameters
to specify local values.
The eieio-instance-inheritor class works by causing cloned
objects to have all slots unbound. This class' slot-unbound
method will cause references to unbound slots to be redirected to the
parent instance. If the parent slot is also unbound, then
slot-unbound will throw an slot-unbound signal.
This class is in package `eieio-base'.
Sometimes it is useful to keep a master list of all instances of a given
class. The class eieio-instance-tracker performs this task.
defvar. This symbol will
serve as the variable used as a master list of all objects of the given
class.
:AFTER method.
It adds new instances to the master list. Do not overload this method
unless you use call-next-method.
equal is used for comparison.
The paramter list-symbol is the variable symbol which contains the
list of objects to be searched.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
eieio-singleton This class is in package `eieio-base'.
make-instance will always return the same object.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
eieio-persistent This class is in package `eieio-base'.
If you want an object, or set of objects to be persistent, meaning the
slot values are important to keep saved between sessions, then you will
want your top level object to inherit from eieio-persistent.
To make sure your persistent object can be moved, make sure all file
names stored to disk are made relative with
eieio-persistent-path-relative.
:file is the file name in which this
object will be saved.
Class allocated slot file-header-line is used with method
object-write as a header comment.
All objects can write themselves to a file, bu persistent objects have several additional methods that aid in maintaining them.
object-write for standard-object, but will derive
a header line comment from the class allocated slot if one is not
provided.
eieio-persistent object
previously written with eieio-persistent-save.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
eieio-named This class is in package `eieio-base'.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
eieio-speedbar This class is in package `eieio-speedbar'.
If a series of class instances map to a tree structure, it is possible to cause your classes to be displayable in Speedbar. @xref{Top,,,speedbar}. Inheriting from these classes will enable a speedbar major display mode with a minimum of effort.
speedbar-make-tag-line for the exp-button-type
argument @xref{Extending,,,speedbar}.
The slot buttonface is the face to use for the text of the string
displayed in speedbar.
The slots buttontype and buttonface are class allocated
slots, and do not take up space in your instances.
eieio-speedbar and initializes
buttontype and buttonface to appear as directory level lines.
eieio-speedbar and initializes
buttontype and buttonface to appear as file level lines.
To use these classes, inherit from one of them in you class. You can use multiple inheritance with them safely. To customize your class for speedbar display, override the default values for buttontype and buttonface to get the desired effects.
Useful methods to define for your new class include:
speedbar-item-info-file-helper.
eieio-speedbar-object-children.
In this method, use techniques specified in the Speedbar manual. @xref{Extending,,,speedbar}.
Some other functions you will need to learn to use are:
Read the Extending chapter in the speedbar manual for more information on how speedbar modes work @xref{Extending,,,speedbar}.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
To browse all the currently loaded classes in emacs, simply run the EIEIO browser. M-x eieio-browse. This browses all the way from the default super-duper class eieio-default-superclass, and lists all children in an indented tree structure.
To browse only from a specific class, pass it in as an alternate parameter.
Here is a sample tree from our current example:
eieio-default-superclass
+--data-object
+--data-object-symbol
|
Note that we start with eieio-default-superclass. See section 4. Default Superclass.
Note: new classes are consed into the inheritance lists, so the tree comes out upside-down.
It is also possible to use the function eieio-class-tree in the
`tree.el' package. This will create an interactive tree. Clicking
on nodes will allow expansion/contraction of branches, or editing of a
class. See section 14. Class Values.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Details about any class or object can be retrieved using the function
eieio-describe-class function. Interactively, type in the name of
a class. In a program, pass it a string with the name of a class, a
class symbol, or an object. The resulting buffer will display all slot
names.
Additionally, all methods defined to have functionality on this class is displayed.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
In Emacs 20 a useful customization utility became available called
`custom'. EIEIO supports custom through two new widget types. If a
variable is declared as type 'object, then full editing of slots
via the widgets is made possible. This should be used carefully,
however, because objects modified are cloned, so if there are other
references to these objects, they will no longer be linked together.
If you want in place editing of objects, use the following methods:
Apply and Reset button are available. This
will edit the object "in place" so references to it are also changed.
There is no effort to prevent multiple edits of a singular object, so
care must be taken by the user of this function.
(widget-create 'object-edit :value object) and
is provided as a locale for adding tracking, or specializing the widget
insert procedure for any object.
To define a slot with an object in it, use the object tag. This
widget type will be automatically converted to object-edit if you
do in place editing of you object.
If you want to have additional actions taken when a user clicks on the
Apply button, then overload the method eieio-done-customizing.
This method does nothing by default, but that may change in the future.
This would be the best way to make your objects persistent when using
in-place editing.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
When widgets are being created, one new widget extention has been added,
called the :slotofchoices. When this occurs in a widget
definition, all elements after it are removed, and the slot is specifies
is queried and converted into a series of constants.
(choice (const :tag "None" nil)
:slotofchoices morestuff)
|
and if the slot morestuff contains (sym1 sym2 sym3), the
above example is converted into:
(choice (const :tag "None" nil)
(const sym1)
(const sym2)
(const sym3))
|
This is useful when a given item needs to be selected from a list of items defined in this second slot.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
It is possible to automatically create documentation for your classes in texinfo format by using the tools in the file `eieio-doc.el'
This will start at the current point, and created an indented menu of all the child classes of, and including class, but skipping any classes that might be in skiplist It will then create nodes for all these classes, subsection headings, and indexes.
Each class will be indexed using the texinfo labeled index indexstring which is a two letter description. @xref{(texinfo) New Indices}.
To use this command, the texinfo macro
@defindex @var { indexstring }
|
where indexstring is replaced with the two letter code.
Next, an inheritance tree will be created listing all parents of that section's class.
Then,all the slots will be expanded in tables, and described
using the documentation strings from the code. Default values will also
be displayed. Only those slots with :initarg specified will be
expanded, others will be hidden. If a slot is inherited from a parent,
that slot will also be skipped unless the default value is different.
If there is a change, then the documentation part of the slot will be
replace with an @xref back to the parent.
Only classes loaded into emacs' memory can be documented.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The Emacs Lisp programming manual has a great chapter programming conventions that help keep each Emacs package working nicely with the entire system. @xref{(elisp)Standards} An EIEIO based program needs to follow these conventions, while simultaneously taking advantage of the Object Oriented features.
The below tips are things that I do when I program an EIEIO based package.
require command.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
There are many sample programs I have written for eieio which could become useful components of other applications, or are good stand alone programs providing some useful functionality. The file, and functionality of these appear below:
tree
call-tree
chart
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| Jump to: | C D E F G I K M N O S U W |
|---|
| Jump to: | C D E F G I K M N O S U W |
|---|
| [Top] | [Contents] | [Index] | [ ? ] |
eieio-instance-inheritor
eieio-singleton
eieio-persistent
eieio-named
eieio-speedbar
| [Top] | [Contents] | [Index] | [ ? ] |
1. Introduction
2. CLOS compatibility
3. Building Classes
4. Default Superclass
5. Making New Objects
6. Accessing Slots
7. Writing Methods
8. Predicates and Utilities
9. Association Lists
10. Introspection
11. Signals
12. Base Classes
13. Browsing class trees
14. Class Values
15. Customizing Objects
16. Documentation
17. Naming Conventions
18. Demo Programs
Function Index
| [Top] | [Contents] | [Index] | [ ? ] |
| Button | Name | Go to | From 1.2.3 go to |
|---|---|---|---|
| [ < ] | Back | previous section in reading order | 1.2.2 |
| [ > ] | Forward | next section in reading order | 1.2.4 |
| [ << ] | FastBack | previous or up-and-previous section | 1.1 |
| [ Up ] | Up | up section | 1.2 |
| [ >> ] | FastForward | next or up-and-next section | 1.3 |
| [Top] | Top | cover (top) of document | |
| [Contents] | Contents | table of contents | |
| [Index] | Index | concept index | |
| [ ? ] | About | this page |