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

extra features/values

    Date: Sun,  3 Nov 85 08:12:39 EST
    From: George J. Carrette <GJC at MIT-MC.ARPA>
    cc:   common-lisp at SU-AI.ARPA, Fahlman at C.CS.CMU.EDU,
          gls at AQUINAS.THINK.COM
    Re:   extra features/values

    How about (gethash key hash-table :give-me-extra-stuff t).

This solves the GETHASH problem, but not the general problem (there are
likely to be many more functions from which a particular implementation wants
to return more values).  And I don't think adding the :give-me-extra-stuff
keyword to every one of them helps.  I think the one, central,
*ARE-WE-IN-PURE-COMMON-LISP-YET?* switch should control extra return value
behavior, to help the poor user who codes

(nth 2 (append (multiple-value-list (gethash key1 hasht1))
	       (multiple-value-list (gethash key2 hasht2)))

	-- Richard