Exceptional News

Iain Buclaw ibuclaw at ubuntu.com
Mon Feb 11 05:33:19 PST 2013


On 11 February 2013 13:29, Andrei Alexandrescu <
SeeWebsiteForEmail at erdani.org> wrote:

> On 2/11/13 8:00 AM, David Nadlinger wrote:
>
>> 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.
>> ---
>>
>> David
>>
>
> Awesome!!!
>
> Andrei
>

This feature has been around for some time (somewhere in lexer.c iirc) -
have you really only just added LDC into it David?

-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130211/812f309a/attachment-0001.html>


More information about the Digitalmars-d mailing list