<div dir="ltr"><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Fri, 2 May 2025 at 23:10, Dennis via Digitalmars-d <<a href="mailto:digitalmars-d@puremagic.com">digitalmars-d@puremagic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Friday, 2 May 2025 at 07:44:52 UTC, Manu wrote:<br>
> On a slight tangent; why do I need to attribute the function at <br>
> all for it check `scope` args don't escape?<br>
<br>
You don't need @live for that, only @safe and -preview=dip1000. <br>
@live / -preview=dip1021 checks for mutable aliasing, which is <br>
something added on top of `scope` escape analysis.<br></blockquote><div><br></div><div>Okay, so then why should `scope` need `@safe`? It's an additional attribute added in its own right; there's no apparent value to requiring a SECOND attribute's presence in order to make the first attribute take effect.</div><div>`scope` should work when you write `scope`. If you don't want scope checking, don't write `scope`...?</div></div></div>