[climacs-devel] adding forward- and backward object to the buffer protocol

Robert Strandh strandh at labri.fr
Sat Jan 29 07:24:54 UTC 2005


Hello,

I am thinking of adding forward-object and backward-object to the
buffer protocol.  There are two reasons for this:

  * They are used much more often by client code than I hade initially
    imagined. 

  * In a line-oriented buffer implementation, they can be implemented
    MUCH more efficiently that with the current method of using
    (incf (offset mark)).  In fact the current method may be quite
    slow in such a buffer implementation. 

Any objections?
-- 
Robert Strandh

---------------------------------------------------------------------
Greenspun's Tenth Rule of Programming: any sufficiently complicated C
or Fortran program contains an ad hoc informally-specified bug-ridden
slow implementation of half of Common Lisp.
---------------------------------------------------------------------



More information about the climacs-devel mailing list