home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / scheme / 2567 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  1.5 KB

  1. Path: sparky!uunet!ogicse!uwm.edu!ux1.cso.uiuc.edu!cs.uiuc.edu!uiucdcs!kaplan
  2. From: kaplan@marula.cs.uiuc.edu (Simon Kaplan)
  3. Newsgroups: comp.lang.scheme
  4. Subject: SCOOPS and "self"
  5. Message-ID: <KAPLAN.92Nov9215123@marula.cs.uiuc.edu>
  6. Date: 10 Nov 92 03:51:23 GMT
  7. Article-I.D.: marula.KAPLAN.92Nov9215123
  8. Sender: news@cs.uiuc.edu
  9. Distribution: comp
  10. Organization: University of Illinois at Urbana-Champaign
  11. Lines: 24
  12.  
  13. I'd like to be able, in scoops, for an object to be able to refer to
  14. itself.  This would allow one to write methods on a class in which the
  15. objects return themselves as results, or pass themselves as arguments to
  16. other methods, and so on.  The authors of SCOOPS make the argument that
  17. such facilities are not necessary, but I cannot see how to avoid an
  18. equivalent of SmallTalk's self, c++'s this, etc.  
  19.  
  20. Since Scoops does not have a "self" in object right now, if anyone can help
  21. me modify scoops to do this I'd be most greatful.   I've tried some obvious
  22. (to me) things, but have not seemed to get it to work.  
  23.  
  24. If anyone has working code that does this, that would be even better.
  25. Ideally we need it for PC Scheme and MIT CScheme 7.x.  
  26.  
  27.  
  28. thanks
  29. Simon Kaplan
  30. --
  31. Simon Kaplan                    ConversationBuilder Project
  32. Human-Computer Interaction Laboratory
  33. Department of Computer Science            kaplan@cs.uiuc.edu 
  34. University of Illinois at Urbana-Champaign    uiucdcs!kaplan@uunet.uu.net
  35. 1304 W. Springfield Ave                phone: +1 217 244 0392
  36. Urbana Illinois 61801, USA            fax:   +1 217 333 3501
  37.