home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / oop / misc / 146 < prev    next >
Encoding:
Internet Message Format  |  1992-12-30  |  1.7 KB

  1. Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!spool.mu.edu!olivea!apple!goofy!mumbo.apple.com!gallant.apple.com!wintermute.apple.com!user
  2. From: ksand@apple.com (Kent Sandvik )
  3. Newsgroups: comp.sys.mac.oop.misc
  4. Subject: Re: Learning App Frameworks (was Re: THINK Class Library learning..)
  5. Message-ID: <ksand-301292103135@wintermute.apple.com>
  6. Date: 30 Dec 92 18:35:35 GMT
  7. References: <1992Dec1.220344.234@physc1.byu.edu> <1992Dec3.064131.23364@reed.edu> <Dec.3.13.57.31.1992.18090@gandalf.rutgers.edu> <1992Dec4.081456.13906@reed.edu> <1992Dec29.213057.14290@news.mentorg.com> <6606.2b41845f@hayes.com>
  8. Sender: news@gallant.apple.com
  9. Followup-To: comp.sys.mac.oop.misc
  10. Organization: (Evil Eye Creature from Mars, Inc.)
  11. Lines: 21
  12.  
  13. In article <6606.2b41845f@hayes.com>, bcoleman@hayes.com (Bill Coleman)
  14. wrote:
  15. > Sounds like you are suggesting people build frameworks in Eiffel, which
  16. > has formal mechanisms for defining pre and post conditions for all routines.
  17.  
  18. > Too bad there isn't such an Eiffel implementation for the Mac.
  19.  
  20. It's not that hard to add pre- and post-conditions with methods using 
  21. assertions. I have my own ASSERT macro package that is conditionally
  22. compiled in during debug mode, and it certainly catches a lot of errors
  23. I would not be aware of otherwise. It's a matter of strict programming
  24. to add in an additional line after each error producing statement. And 
  25. yes indeed a language such as Eiffel helps, but it does not imply that
  26. you can't do the same thing using for instance macros in C/C++.
  27.  
  28. Cheers,
  29. Kent
  30. -------------------
  31. Kent Sandvik (UUCP: ....!apple!ksand; INTERNET: ksand@apple.com)
  32. DISCLAIMER: Private activities on the Net.        
  33. "Don't just do something!  Stand there!"  -- Mystery Science Theater 3000
  34.