try/catch idiom in std.datetime

David Nadlinger code at klickverbot.at
Tue Nov 19 09:59:19 PST 2013


On Tuesday, 19 November 2013 at 16:07:17 UTC, Jacob Carlborg 
wrote:
> On 2013-11-19 16:56, Andrei Alexandrescu wrote:
>
>> You're not operating with the correct definitions of 
>> "expression" and
>> "statement".
>
> I would consider this a statement: 
> https://github.com/jacob-carlborg/dstep/blob/master/dstep/translator/Translator.d#L285..L286
>
> And this an expression: 
> https://github.com/jacob-carlborg/dstep/blob/master/dstep/translator/Translator.d#L288

http://dlang.org/statement.html#ExpressionStatement

David


More information about the Digitalmars-d mailing list