Changeset 4820


Ignore:
Timestamp:
11/18/03 01:23:16 (18 years ago)
Author:
piso
Message:

Work in progress.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/defstruct.lisp

    r4818 r4820  
    22;;;
    33;;; Copyright (C) 2003 Peter Graves
    4 ;;; $Id: defstruct.lisp,v 1.29 2003-11-18 01:06:58 piso Exp $
     4;;; $Id: defstruct.lisp,v 1.30 2003-11-18 01:23:16 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    6565          (typep object ',*ds-name*))))))
    6666
    67 
    6867(defun get-slot-accessor (slot)
    6968  (case *ds-type*
    7069    (LIST
     70     (when *ds-named*
     71       (incf slot))
    7172     `(lambda (instance) (elt instance ,slot)))
    7273    (t
     
    8182  (case *ds-type*
    8283    (LIST
     84     (when *ds-named*
     85       (incf slot))
    8386     `(lambda (instance value) (%set-elt instance ,slot value)))
    8487    (t
Note: See TracChangeset for help on using the changeset viewer.