home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / clos / 1010 < prev    next >
Encoding:
Text File  |  1992-11-22  |  1.7 KB  |  36 lines

  1. Newsgroups: comp.lang.clos
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!ufo!Aig.Jpl.Nasa.Gov!charest
  3. From: charest@Aig.Jpl.Nasa.Gov (Len Charest)
  4. Subject: Re: Extending syntax/semantics of method specializers
  5. Message-ID: <1992Nov23.192133.10895@jpl-devvax.jpl.nasa.gov>
  6. Sender: usenet@jpl-devvax.jpl.nasa.gov (For NNTP so rrn will be able to post)
  7. Nntp-Posting-Host: ai-cyclops
  8. Reply-To: charest@aig.jpl.nasa.gov
  9. Organization: NASA/Jet Propulsion Laboratory
  10. References: <1992Nov20.221251.28590@jpl-devvax.jpl.nasa.gov> <9211210425.AA12235@verdi.iisd.sra.com> <1992Nov23.113551@disun47.epfl.ch>
  11. Date: Mon, 23 Nov 1992 19:21:33 GMT
  12. Lines: 22
  13.  
  14. In article <1992Nov23.113551@disun47.epfl.ch>, matomira@disun47.epfl.ch (Fernando Mato Mira) writes:
  15.  
  16. |> The current implemention of CLOS does not allow for the creation of generic
  17. |> classes, that is, classes where slot types are determined by type parameters.
  18. |> Under the current implementation, this inhibits the creation of type 
  19. |> specifiers in the style of "(list integer)" for user-defined classes.
  20. [  generic classes proposal deleted]
  21.  
  22. Generic classes would go a long way towards extending the expressiveness of
  23. DEFMETHOD. However, they would not cover all of the discrimination strategies I
  24. mentioned in my original post--especially the one I find most attractive: method
  25. selection based on the *value* of a variable. To wit:
  26.  
  27. (defun interesting-value-p (x)
  28.   (eq x *interesting-value*))
  29.  
  30. (defmethod observe ((thing (satisfies interesting-value-p)))
  31.   ...)
  32. ..................................................
  33.                                   Len Charest, Jr.
  34.                  JPL Artificial Intelligence Group
  35.                           charest@aig.jpl.nasa.gov
  36.