Conditionally set nothrow: for a block of code.

Steven Schveighoffer schveiguy at yahoo.com
Thu May 24 18:59:52 UTC 2018


On 5/24/18 2:51 PM, Mike Franklin wrote:

> Given that the PR above is for object.d, I can't turn the entire 
> object.d source file into a string and conditionally mix that in.  Does 
> anyone have a solution to this?

My recommendation would have been the last one, but if that doesn't 
work, I don't think anything will that is... palatable.

The only other avenue you *could* explore is importing a file as a 
string and mixing the whole thing in (prepending "nothrow:" at the top).

Other than that, I think it's on to DIP territory.

-Steve


More information about the Digitalmars-d-learn mailing list