void myMethod() throw()

Lars T. Kyllingstad public at kyllingen.NOSPAMnet
Mon Jul 20 00:08:13 PDT 2009


Sam Hu wrote:
> Does D2 has the equivalent implemenation of exception no throw out of a method:
> 
> void myMethod() throw(){}
> 
> Or,D2 has its own/better implementation on such feature,if yes,what is that?
> 
> Thanks in advance.
> Regards,
> Sam


Yes, it's called nothrow. :)

nothrow void myMethod() { ... }

-Lars


More information about the Digitalmars-d-learn mailing list