Mail Archives: djgpp/1999/04/12/08:40:56
Thomas J. Hruska wrote:
> As I was writing a program, I accidentally came across the following keyword:
>
> try
>
> Is this just a bug? If not, what does 'try' do? I can't figure this out.
'try' is C++ keyword. It is used in construct
try
{
}
catch(...)
{
};
to establish mechanism for catching run-time exceptions. It is *very* usefull
and hevily used in STL. The best explanation I've seen is in:
Bjarne Stroustrup: "The C++ Programing Language", ISBN 0-201-53992-6
David
- Raw text -