C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

exception

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C Language
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Tue May 15, 2007 9:11 am    Post subject: exception Reply with 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.

Thanks
Back to top
Ian Collins
Guest





PostPosted: Tue May 15, 2007 9:11 am    Post subject: Re: exception Reply with quote



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





PostPosted: Tue May 15, 2007 9:11 am    Post subject: Re: exception Reply with quote



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





PostPosted: Tue May 15, 2007 9:11 am    Post subject: Re: exception Reply with quote

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





PostPosted: Tue May 15, 2007 9:12 am    Post subject: Re: exception Reply with quote

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





PostPosted: Tue May 15, 2007 9:12 am    Post subject: Re: exception Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C Language All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.