 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Tue May 15, 2007 9:11 am Post subject: exception |
|
|
Can anyone describe with example : exception(s) thrown by the function
that must be handled by other functions, and explain the conditions
causing the exception(s) to be thrown.
Thanks |
|
| Back to top |
|
 |
Ian Collins Guest
|
Posted: Tue May 15, 2007 9:11 am Post subject: Re: exception |
|
|
anjna22 (AT) gmail (DOT) com wrote:
| Quote: | Can anyone describe with example : exception(s) thrown by the function
that must be handled by other functions, and explain the conditions
causing the exception(s) to be thrown.
C doesn't support exceptions. Were you looking for comp.lang.c++? |
--
Ian Collins. |
|
| Back to top |
|
 |
Mohan Guest
|
Posted: Tue May 15, 2007 9:11 am Post subject: Re: exception |
|
|
On May 15, 11:37 am, Ian Collins <ian-n...@hotmail.com> wrote:
| Quote: | anjn...@gmail.com wrote:
Can anyone describe with example : exception(s) thrown by the function
that must be handled by other functions, and explain the conditions
causing the exception(s) to be thrown.
C doesn't support exceptions. Were you looking for comp.lang.c++?
|
what about setjmp and longjmp, are not they supported in C99? |
|
| Back to top |
|
 |
Pietro Cerutti Guest
|
Posted: Tue May 15, 2007 9:11 am Post subject: Re: exception |
|
|
Mohan wrote:
| Quote: | On May 15, 11:37 am, Ian Collins <ian-n...@hotmail.com> wrote:
anjn...@gmail.com wrote:
Can anyone describe with example : exception(s) thrown by the function
that must be handled by other functions, and explain the conditions
causing the exception(s) to be thrown.
C doesn't support exceptions. Were you looking for comp.lang.c++?
what about setjmp and longjmp, are not they supported in C99?
|
What does it have to do with exceptions?
--
Pietro Cerutti
PGP Public Key ID:
http://gahr.ch/pgp |
|
| Back to top |
|
 |
Laurent Deniau Guest
|
Posted: Tue May 15, 2007 9:12 am Post subject: Re: exception |
|
|
Pietro Cerutti wrote:
| Quote: | Mohan wrote:
On May 15, 11:37 am, Ian Collins <ian-n...@hotmail.com> wrote:
anjn...@gmail.com wrote:
Can anyone describe with example : exception(s) thrown by the function
that must be handled by other functions, and explain the conditions
causing the exception(s) to be thrown.
C doesn't support exceptions. Were you looking for comp.lang.c++?
what about setjmp and longjmp, are not they supported in C99?
|
They are also supported by C89
| Quote: | What does it have to do with exceptions?
|
This is one way (low-level layer) to implement the exception mechanism.
a+, ld. |
|
| Back to top |
|
 |
Keith Thompson Guest
|
Posted: Tue May 15, 2007 9:12 am Post subject: Re: exception |
|
|
Mohan <ajmrao (AT) gmail (DOT) com> writes:
| Quote: | On May 15, 11:37 am, Ian Collins <ian-n...@hotmail.com> wrote:
anjn...@gmail.com wrote:
Can anyone describe with example : exception(s) thrown by the function
that must be handled by other functions, and explain the conditions
causing the exception(s) to be thrown.
C doesn't support exceptions. Were you looking for comp.lang.c++?
what about setjmp and longjmp, are not they supported in C99?
|
setjmp() and longjmp() are supported in both C90 and C99.
There's some similarity between setjmp/longjmp and exceptions, but
that's not what the original poster was asking about.
--
Keith Thompson (The_Other_Keith) kst-u (AT) mib (DOT) org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister" |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|