home *** CD-ROM | disk | FTP | other *** search
- 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
- From: ksand@apple.com (Kent Sandvik )
- Newsgroups: comp.sys.mac.oop.misc
- Subject: Re: Learning App Frameworks (was Re: THINK Class Library learning..)
- Message-ID: <ksand-301292103135@wintermute.apple.com>
- Date: 30 Dec 92 18:35:35 GMT
- 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>
- Sender: news@gallant.apple.com
- Followup-To: comp.sys.mac.oop.misc
- Organization: (Evil Eye Creature from Mars, Inc.)
- Lines: 21
-
- In article <6606.2b41845f@hayes.com>, bcoleman@hayes.com (Bill Coleman)
- wrote:
- > Sounds like you are suggesting people build frameworks in Eiffel, which
- > has formal mechanisms for defining pre and post conditions for all routines.
-
- > Too bad there isn't such an Eiffel implementation for the Mac.
-
- It's not that hard to add pre- and post-conditions with methods using
- assertions. I have my own ASSERT macro package that is conditionally
- compiled in during debug mode, and it certainly catches a lot of errors
- I would not be aware of otherwise. It's a matter of strict programming
- to add in an additional line after each error producing statement. And
- yes indeed a language such as Eiffel helps, but it does not imply that
- you can't do the same thing using for instance macros in C/C++.
-
- Cheers,
- Kent
- -------------------
- Kent Sandvik (UUCP: ....!apple!ksand; INTERNET: ksand@apple.com)
- DISCLAIMER: Private activities on the Net.
- "Don't just do something! Stand there!" -- Mystery Science Theater 3000
-