try , catch and throw
Thanks in advance
Jamie
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
/Peter
> Hi
> I want to know which compilers support the exception handling keywords
>
> try , catch and throw
>
> Thanks in advance
> Jamie
>
It might be best to turn your question around;
Which C++ compilers do NOT support exception handling.
If you have a fairly recent compiler (less than 10 years old) for a
general-purpose target, I expect that all those compilers support
exception handling.
The only compilers where exception handling is absent are
- compilers that predate the addition of it to the C++ language, which
happened prior to 1998 (the release date of the first C++ standard), or
- compilers that target severely resource-constrained embedded
platforms. If you have one of those, you *will* know about its
limitations.
Bart v Ingen Schenau
--
a.c.l.l.c-c++ FAQ: http://www.comeaucomputing.com/learn/faq
c.l.c FAQ: http://c-faq.com/
c.l.c++ FAQ: http://www.parashift.com/c++-faq-lite/
C++ exceptions are standard and implemented in virutally every
compiler. It is hard to find one that doesnt implement them ( I cant
think of any, but perhaps the C++ for PIC microcontrollers do not) but
unfortunatley, it is not hard to find a "senior" developer who thinks
they are spawn of the devil
Lance
Exceptions were discussed in the ARM, but there was a bit of a lag of
uptake, so if you have a compiler dating 1995 or earlier, odds are it
won't have complete support of exceptions.
A similar story goes for other language features (eg the bool type)
as a lot of effort by compiler vendors went into things like templates.
--