Related articles |
---|
[19 earlier articles] |
Re: failure due to compiler? grout@polestar.csrd.uiuc.edu (1996-07-18) |
Re: failure due to compiler? gah@u.washington.edu (1996-07-19) |
Re: failure due to compiler? ok@cs.rmit.edu.au (1996-07-20) |
Re: failure due to compiler? LEEW@FS.MICROLOGIC.COM (Lee Webber) (1996-07-20) |
Re: failure due to compiler? iwm@doc.ic.ac.uk (Ian Moor) (1996-07-20) |
Re: failure due to compiler? WStreett@shell.monmouth.com (1996-07-20) |
Re: failure due to compiler? jgllgher@maths.tcd.ie (Dara Gallagher) (1996-07-20) |
Re: failure due to compiler? ok@cs.rmit.edu.au (1996-07-22) |
Re: failure due to compiler? rfg@monkeys.com (1996-07-22) |
Re: failure due to compiler? leew@micrologic.com (Lee Webber) (1996-07-23) |
Re: failure due to compiler? eric@gyst.com (Eric Hamilton) (1996-07-23) |
Re: failure due to compiler? davidg@genmagic.com (1996-07-23) |
Re: failure due to compiler? davidg@genmagic.com (1996-07-24) |
[4 later articles] |
From: | Dara Gallagher <jgllgher@maths.tcd.ie> |
Newsgroups: | comp.compilers |
Date: | 20 Jul 1996 21:42:16 -0400 |
Organization: | Dept. of Maths, Trinity College, Dublin, Ireland. |
References: | 96-07-041 96-07-056 96-07-064 96-07-079 96-07-100 96-07-123 |
Keywords: | errors |
gah@u.washington.edu (G. Herrmannsfeldt) writes:
> I think my usual favorite, though I can't remember any exact examples,
> are ones that give the right answer only when extra debugging code is
> added, or when using a debugger.
Assertions are a feature of the OO language Eiffel and are sold heavily as
part of the Eiffel philosophy. Also many C++ programmers use macros to
implement assertions.
However, as expressions in C++ (and Eiffel) may have side effects, turning
assertion checking off may alter the behaviour of the program. One Eiffel
user I know claims to have experienced this perplexing behaviour. His
program worked as expected until he turned assertion checking off!
This is more a failure in language design than in compiler writing.
However I find it amusing since assertions (and invariants) are promoted
as a safety feature of languages.
--
_______________________________________________________________
Dara Gallagher. http://www.cs.tcd.ie/www/jgllgher/jgllgher.html
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.