home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / lisp / mcl / 1552 < prev    next >
Encoding:
Text File  |  1992-11-06  |  1.6 KB  |  42 lines

  1. Newsgroups: comp.lang.lisp.mcl
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!hela.iti.org!usc!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!stanford.edu!lucid.com!karoshi!york
  3. From: york@oakland-hills.lucid.com (Bill York)
  4. Subject: Re: functionp
  5. In-Reply-To: bill@cambridge.apple.com's message of 5 Nov 92 16:57:36 GMT
  6. Message-ID: <YORK.92Nov5161629@oakland-hills.lucid.com>
  7. Sender: usenet@lucid.com
  8. Reply-To: York@Lucid.COM
  9. Organization: Lucid, Inc.
  10. References: <9211051555.AA17957@cambridge.apple.com>
  11. Date: 5 Nov 92 16:16:29
  12. Lines: 28
  13.  
  14. In article <9211051555.AA17957@cambridge.apple.com> bill@cambridge.apple.com (Bill St. Clair) writes:
  15.  
  16.    >When you have a function defined, say (defun junk (x) ... ),
  17.    >and you try:
  18.    >
  19.    >(functionp 'junk)
  20.    >
  21.    >you get NIL.
  22.    >
  23.    >Is this not a bug? 
  24.  
  25.    At the bottom of p. 102 of CLtL2, it says:
  26.  
  27.    "X3J13 voted in June 1988 <90> to define
  28.  
  29.    (functionp x) = (typep x 'function)
  30.  
  31.    Because the vote also specified that types CONS and SYMBOL are disjoint
  32.    from type FUNCTION, this is an incompatible change; now FUNCTIONP is in
  33.    fact always false of symbols and lists."
  34.  
  35. This damned issue just won't go away!  In CLTL-1 Lisps, users are
  36. always complaining that FUNCTIONP on any symbol returns T.  In
  37. CLTL-2/ANSI Lisps people get confused the other way.  In CLIM we wrote
  38. a thing called FUNCALLABLE-P, which returned T if the thing was a
  39. function or a symbol with a function in the function cell (I don't
  40. think we checked for a lambda-expression, but we probably should
  41. have!).
  42.