[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Mar 7 10:24:20 1995 
Subject:Reimplementing lists (was: Is there a name for. 
From:Steve Knight 
Volume-ID:950307.02 

Robin Popplestone writes as an aside:
> With LISP descendents there are powerful preconceptions.
> Suppose, for example, you wanted an extra slot in every list-cell. You
> would have to rebuild the entire language implementation, and probably
> break it.

One of the objectives of ObjectClass was to make this possible.  
If lists were a class, then it would be possible to further specialise
pairs by writing

 define :class triple;
   is pair;
   slot extra;
 enddefine;

It would then be possible to create lists from triples rather than pairs
and have the entire set of list operations work on them seamlessly.

Steve