[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: managing a resource of instances
- To: hmuller@Sun.COM (Hans Muller)
- Subject: Re: managing a resource of instances
- From: Stan Lanning <Lanning.pa@Xerox.COM>
- Date: 25 Jul 88 13:44 PDT
- Cc: CommonLoops.PA@Xerox.COM
- In-reply-to: hmuller@Sun.COM (Hans Muller)'s message of Mon, 25 Jul 88 13:26:12 PDT
I think this is a good reason why programs should provide their own constructors
instead of using MAKE-INSTANCE as their public interface to object creation. If
you defined your own MAKE-FONT function, you could accomplish exactly what you
want:
(defun MAKE-FONT (&rest initargs)
(or (FIND-FONT initargs)
(CACHE-FONT (apply #'MAKE-INSTANCE 'font initargs)
initargs)))
----- smL