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

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