Changeset 8607


Ignore:
Timestamp:
02/18/05 18:21:16 (16 years ago)
Author:
piso
Message:

SETF MACRO-FUNCTION

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/late-setf.lisp

    r8298 r8607  
    22;;;
    33;;; Copyright (C) 2003-2004 Peter Graves
    4 ;;; $Id: late-setf.lisp,v 1.7 2004-12-26 23:49:05 piso Exp $
     4;;; $Id: late-setf.lisp,v 1.8 2005-02-18 18:21:16 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    9393               ,setter)
    9494            `(the ,type ,getter))))
     95
     96(defun (setf macro-function) (new-function symbol &optional environment)
     97  (let ((macro (make-macro symbol (or (precompile nil new-function)
     98                                      new-function))))
     99    (fset symbol macro)
     100    macro))
Note: See TracChangeset for help on using the changeset viewer.