# I wonder what is the effect of using it?  by the way what's throw()?
# 

It's a C++ keyword that declares the possible exception types that a
function can throw.  (exceptions in C++, don't have to be object, unlike
in Java)

ex.

void method() throw (int); //method can throw an exception of type int.

..
void method()
{
  throw 0;
}

Caveat: Most compilers ignore the throw() clause of method declarations
and will not check if there really are exceptions thrown, or if the 
exception types thrown match that of the declared throwable types -- 
MSVC++ being notorious to this.  I'm not sure if gcc checks it.

HTH

jeff --

-- 
Jeff Gutierrez
Mapua Online! 
http://www.mapua.org
http://www.mapua.com

Pinoy Ako! May reklamo?

_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to