Lazy param with nothrow

ag0aep6g via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Mar 1 05:53:36 PST 2016


On 01.03.2016 14:35, Andrea Fontana wrote:
> This very very simple function [1] won't compile.
> It says that param t is not nothrow. Why? What's wrong with this?
>
> http://dpaste.dzfl.pl/bfc382e62711

It's a bug. Lazy parameters generate delegates. nothrow is currently not 
inferred for those delegates. It should be.

https://issues.dlang.org/show_bug.cgi?id=12647


More information about the Digitalmars-d-learn mailing list