[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (atom VECTOR): franz vs liszt
- To: ALAN@MIT-MC, JonL.pa@XEROX
- Subject: Re: (atom VECTOR): franz vs liszt
- From: Rick McGeer (on an h19-u) <mcgeer%ucbkim@Berkeley>
- Date: Tue, 14 Aug 84 19:06:20 GMT
- Cc: smh@MIT-EMS, franz-friends%ucbkim@Berkeley, GSB@MIT-MC
- Original-date: Tue, 14 Aug 84 12:06:20 pdt
- Phone: (415) 236-8262
Sorry to anyone who's getting this twice: I can't figure out from
the mailer error message who got it and who didn't...
The predicate atom in Franz appears to be:
(defun atom(foo)
(if foo
then (not (or (hunkp foo) (dtpr foo)))
else t))
whereas a more natural implementation, it seems to me, is:
(defun atom(foo)
(or (symbolp foo) (numberp foo)))
Since it seems to me that:
(xor (vectorp foo) (hunkp foo) (dtpr foo) (atom foo) (arrayp foo))
should always be non-nil for non-nil objects. Or, better put, that vectors,
hunks, dtprs, atoms, and arrays should partition the data space. No?
Rick.