From: David Rasmussen Newsgroups: comp.os.msdos.djgpp Subject: Re: Undocumented Keyword... Date: Mon, 12 Apr 1999 10:20:41 +0200 Organization: k-net Lines: 36 Message-ID: <3711ACD9.FFEE04F9@kampsax.dtu.dk> References: <3 DOT 0 DOT 6 DOT 16 DOT 19990411171513 DOT 2c4fdadc AT pop DOT detroit DOT crosswinds DOT net> NNTP-Posting-Host: 130.225.71.226 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.net.uni-c.dk 923905061 29164 130.225.71.226 (12 Apr 1999 08:17:41 GMT) X-Complaints-To: usenet AT news DOT net DOT uni-c DOT dk NNTP-Posting-Date: 12 Apr 1999 08:17:41 GMT X-Mailer: Mozilla 4.5 [en] (Win98; I) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Thomas J. Hruska" wrote: > > As I was writing a program, I accidentally came across the following keyword: > > try > > I checked to see if there was help available on this keyword in both > RHIDE's docs and also to see if Borland Turbo C/C++ v3.1 had the same > keyword. Both IDEs have the same keyword, but neither have documentation > on it. I searched my C/C++ books for such a keyword and I can't find > anything. > > Is this just a bug? If not, what does 'try' do? I can't figure this out. > I will check one other IDE tomorrow (Monday) to see if the same thing > happens in a later version of Borland C/C++ (4.5, I think). > Turbo C/C++ 3.1 is 10 years old or so. The C++ standardisation project was recently finished. And the result is a language that is pretty different from the one you find in old compilers as Turbo C/C++ 3.1 You should grab a recent C++ book and read about all the new and not so new features, such as templates, STL, namespaces, exception handling etc. "try" IS indeed a keyword just as "int". It is part of the C++ exception handling mechanism. But again: Read a book about it. Standard C++ offers many advanced features over the C++ that existed just 5 years ago. -- David Rasmussen "All you touch and all you see is all your life will ever be." Roger Waters "Life is what happens to you while you're busy making other plans." John Lennon Floyd Code: v1.2a r+d>s TW 1/0/pw tG sqrt(-1)? 0 DSotM 3 2 <6jun98>