throws Exception in method
amehat via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu May 8 02:15:13 PDT 2014
Hello everyone,
in java, you can have exceptions on methods.
Thus we can write:
public static void control (String string) throws
MyException {}
Is that possible in D and if so how does it work? If I write this
D:
public void testMe () throws MyException {}
The compiler refuses to compile.
What is the proper behavior for this D?
thank you
More information about the Digitalmars-d-learn
mailing list