<div dir="ltr">On 24 April 2013 16:52, Walter Bright <span dir="ltr"><<a href="mailto:newshound2@digitalmars.com" target="_blank">newshound2@digitalmars.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 4/23/2013 8:32 PM, Manu wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is it actually complicated?<br>
</blockquote>
<br>
It's a lot more complicated than simply destructing them at the end of a function. You have to define what happens for conditionally executed expressions || && ?:, what happens at the end of a statement, what happens at a }, what happens to for statement initializers, etc., for each statement type.<div class="im">
<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Enclosing scope seems fine too. Can you suggest a case where it could escalate<br>
to an outer scope via a scope-ref argument?<br>
So let's say then, that lifetime should be identical to a local declared in the<br>
same location. No change of any rules is required, it will work as expected.<br>
</blockquote>
<br></div>
You cannot declare locals in conditionally compiled expressions. So it isn't as simple as that.<br></blockquote><div><br></div><div style>Okay, I understand the problem now. I'm sure it's possible to address these issues, but I see the complexity in that case.</div>
<div style>Is it worth doing so? Will it be taken seriously, or will another reason to dismiss it appear?</div></div></div></div>