Exceptional News

Dmitry Olshansky dmitry.olsh at gmail.com
Mon Feb 11 09:19:13 PST 2013


11-Feb-2013 17:00, David Nadlinger пишет:
> Looks like we are finally getting somewhere. :)
>
> ---
> version (Windows) {} else static assert(false);
> void main() {
>      try {
>          throw new Exception("This exception...");
>      } catch (Exception e) {
>          import std.stdio;
>          writeln(e.msg, " ... has been caught for you by ", __VENDOR__,
> ".");
>      }
> }
> ---
> This exception... ... has been caught for you by LDC.
> ---

Nice one!

There got to be size_t.sizeof printed somewhere ... :)


-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list