Bug?

Mike Parker via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 1 04:31:18 PDT 2017


On Thursday, 1 June 2017 at 08:45:56 UTC, Wulfklaue wrote:

> Playing around a bit more and even D can be made to crash:
>
>> import std.stdio : writefln;
>> void main()
>> {
>>     int x = 5;
>>     writefln("The action is:\n%i", x);
>> }
>
>> std.format.FormatException at C:\D\dmd2\windows\bin\..\..\src\phobos\std\format.d(1744):
>

That's not a crash. It's an exception. You can catch it and 
respond to it.


More information about the Digitalmars-d mailing list