[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[KLOTZ: defstruct initialization in :constructor ]



Parameter lists for :CONSTRUCTOR's should act as much as possible like
lambda lists.  CLtL doesn't require this, but it seems like a good idea.

- Jonathan

Date: Thu, 2 Oct 86 20:31 EDT
From: Leigh L. Klotz <KLOTZ at OZ.AI.MIT.EDU>
To:   pgslcd at AI.AI.MIT.EDU
cc:   jar at AI.AI.MIT.EDU
Re:   defstruct initialization in :constructor 
Message-ID: <861002203146.1.KLOTZ@JOE-LOUIS.LCS.MIT.EDU>

(DEFSTRUCT (STATIC-VARIABLE-CACHE-ENTRY
	     (:CONSTRUCTOR MAKE-STATIC-VARIABLE-CACHE-ENTRY
		(REAL-OBJECT &AUX
			     (VARIABLE (CAR REAL-OBJECT))
			     (UNIQUE-IDENTIFIER (CADR REAL-OBJECT)))))
  VARIABLE
  UNIQUE-IDENTIFIER
  REAL-OBJECT)

The silver book doesn't explicitly say that the &aux's can depend on the
real args, but it does say that &aux was included to make all desirable
behaviors possible, and &aux forms in lambda can depend on the args.

...