anonymous functions and scope(exit)

Steven Schveighoffer schveiguy at gmail.com
Sat Jul 3 20:46:00 UTC 2021


On 7/3/21 4:08 PM, frame wrote:
> On Saturday, 3 July 2021 at 17:39:18 UTC, Steven Schveighoffer wrote:
> 
>> But in practice, the compiler does not have to clean up anything when 
>> an `Error` is thrown. Whether it does or not is defined by the 
>> implementation.
> 
> This should be really mentionend in the docs? "Guard", yeah...
> 
> 

Yeah, there isn't a good discussion of the differences between Error and 
Exception on that page.

-Steve


More information about the Digitalmars-d-learn mailing list