D equivalent of Python's try..else

Shriramana Sharma via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Nov 20 21:57:32 PST 2015


Shriramana Sharma wrote:

> In Python one has the syntax try..except..else.. where code in the
> else clause will only be executed if an exception does not occur. (Ref:
> http://stackoverflow.com/a/22579805/1503120)

Official Python documentation: 
https://docs.python.org/3/reference/compound_stmts.html#try

-- 
Shriramana Sharma, Penguin #395953


More information about the Digitalmars-d-learn mailing list