From: Stephen Leake <Stephen.Leake@gsfc.nasa.gov>
Subject: Re: Ada and C++ asserts.
Date: 1996/07/15
Date: 1996-07-15T00:00:00+00:00 [thread overview]
Message-ID: <31EA6D42.2B35@gsfc.nasa.gov> (raw)
In-Reply-To: nh4tn9d9vw.fsf@paralysys
Nasser Abbasi wrote:
>
> ... (simple example of assert, where Ada "works", and C++ "fails")
> C++ version
> ============
> .... now build and run
>
> $CC t2.cc
> $a.out
> Assertion failed: i == 1, file t2.cc, line 8
> Abort (core dumped)
> ^^^^^^^^^^^^^
Since this is the ANSI defined behaviour of a failed assertion, why do
you claim it is not working? At least for ANSI C, assert is supposed to
call Abort if the assertion fails. I assume the C++ behaviour is
similarly defined.
>
> --
> Nasser Abbasi.
--
- Stephe
next prev parent reply other threads:[~1996-07-15 0:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-07-15 0:00 Ada and C++ asserts Nasser Abbasi
1996-07-15 0:00 ` Giuliano Carlini
1996-07-15 0:00 ` Robert Dewar
1996-07-15 0:00 ` Nasser Abbasi
1996-07-16 0:00 ` Robert Dewar
1996-07-18 0:00 ` Ian Johnston
1996-07-22 0:00 ` Richard Curnow
1996-07-15 0:00 ` Fergus Henderson
1996-07-15 0:00 ` Stephen Leake [this message]
1996-07-16 0:00 ` Ian Johnston
1996-07-16 0:00 ` Eric Kline
1996-07-16 0:00 ` Jon S Anthony
1996-07-17 0:00 ` James McCallum
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox