ImportC and nothrow/@nogc?
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Mon Aug 26 07:48:03 UTC 2024
On 26/08/2024 7:25 PM, Walter Bright wrote:
> Mixing safe and trusted blocks into the same function just doesn't work.
> Timon pointed out why in another post in this thread.
>
> I take that back. It appears to work, but it does not, as trusted code
> needs to provide a safe interface to it. That doesn't happen if it's
> just a "suppress the error message" hack.
I agree there is a certain amount of uneasiness of logic that would be
doable with it.
Not worth an ideas forum post, without this figured out and if it was
part of a bigger design.
The problem is though, there shouldn't be a fundamental difference
between a function body, and a scope within a function body.
So I'll agree that it appears to work, but there is likely holes in it.
More information about the Digitalmars-d
mailing list