home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / hypercar / 2858 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  1.4 KB

  1. Path: sparky!uunet!europa.asd.contel.com!emory!ogicse!reed!sharvy
  2. From: sharvy@reed.edu (V Headshape)
  3. Newsgroups: comp.sys.mac.hypercard
  4. Subject: Hypercard & OOP
  5. Message-ID: <1992Jul23.064657.4293@reed.edu>
  6. Date: 23 Jul 92 06:46:57 GMT
  7. Organization: Reed College, Portland, Oregon
  8. Lines: 18
  9.  
  10. I recently read a book on object-oriented programming (which I have
  11. never tried) , and was struck by the correspondences to hyperCard.  It
  12. seems like backgrounds are analogous to abstract classes in OOP, while
  13. cards function as specific instances of a class.  So, for instance,
  14. you could define generally an object (say, a house) in a background script, 
  15. and then the cards of that background would be particular instances of that
  16. object, which would "inherit" the general characteristics defined at the 
  17. background level; the card script would then define the particular 
  18. properties of the particular object that the card represented.
  19.  
  20. Unfortunately, backgrounds cannot contain other backgrounds, and cards cannot
  21. contain other cards, so the inheritance is limited to single level, which 
  22. leaves us with a rather toy-like version of true OOP.  I hope future versions
  23. of hyperCard will develop the OOP potential of hyperCard, or that some
  24. implementation of OOP for the Mac in the user-friendly, GUI, spirit of
  25. hyperCard will be developed.  Seems like an exciting area.
  26. -- 
  27. Liberate the Weirdoes and You Liberate the Squares
  28.