Next / Previous / Contents / Shipman's homepage

5.2. The pseudo-object convention

The author prefers an object-oriented style in programming generally. In e-lisp, objects are simulated using lists in which each position has a fixed meaning.

Furthermore, each position in one of these lists has an accessor function that extracts the datum from that position. For example, each description of a field in the record layout is described by a sort of “field definition object” describing the length of the field and its default content.

For example, if such an object is contained in some e-lisp variable F, then the accessor function (ibp-field-def-len F) returns the field length.

The pseudo-objects used in this application are defined in: