On Thu, May 08, 2014 at 03:19:04PM +, amehat via Digitalmars-d-learn wrote:
> On Thursday, 8 May 2014 at 14:02:06 UTC, monarch_dodra wrote:
[...]
> >Keep in mind that D also has the concept of "Error". Both "Exception"
> >and "Error" derive from "Throwable".
> >
> >"nothrow" only means the func
On Thursday, 8 May 2014 at 14:02:06 UTC, monarch_dodra wrote:
On Thursday, 8 May 2014 at 13:06:05 UTC, amehat wrote:
Okay.
Thank you for these explanations, I understand a little better
the exceptions D.
Keep in mind that D also has the concept of "Error". Both
"Exception" and "Error" derive
On Thursday, 8 May 2014 at 13:06:05 UTC, amehat wrote:
Okay.
Thank you for these explanations, I understand a little better
the exceptions D.
Keep in mind that D also has the concept of "Error". Both
"Exception" and "Error" derive from "Throwable".
"nothrow" only means the function will not
On Thursday, 8 May 2014 at 12:27:55 UTC, John Colvin wrote:
On Thursday, 8 May 2014 at 12:00:40 UTC, amehat wrote:
On Thursday, 8 May 2014 at 10:14:27 UTC, Jonathan M Davis via
Digitalmars-d-learn wrote:
On Thu, 08 May 2014 09:15:13 +
amehat via Digitalmars-d-learn
wrote:
Hello everyon
On Thursday, 8 May 2014 at 12:00:40 UTC, amehat wrote:
On Thursday, 8 May 2014 at 10:14:27 UTC, Jonathan M Davis via
Digitalmars-d-learn wrote:
On Thu, 08 May 2014 09:15:13 +
amehat via Digitalmars-d-learn
wrote:
Hello everyone,
in java, you can have exceptions on methods.
Thus we can
On Thursday, 8 May 2014 at 10:14:27 UTC, Jonathan M Davis via
Digitalmars-d-learn wrote:
On Thu, 08 May 2014 09:15:13 +
amehat via Digitalmars-d-learn
wrote:
Hello everyone,
in java, you can have exceptions on methods.
Thus we can write:
public static void control (String string) throws
On Thu, 08 May 2014 09:15:13 +
amehat via Digitalmars-d-learn
wrote:
> 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 th
amehat:
What is the proper behavior for this D?
D doesn't have that Java syntax, because it was widely regarded
as a Java design mistake. So in D omit the throws part. If your
function tree doesn't throw exceptions (but it can throw errors)
add a "nothrow".
Bye,
bearophile
On Thursday, 8 May 2014 at 09:15:16 UTC, amehat wrote:
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 () t
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.
10 matches
Mail list logo