July 26, 2015 Re: with(auto x = ...) | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | On 07/24/2015 05:01 PM, Adam D. Ruppe wrote: > > .....ironically, given the other thread about statements as expressions where i said 'meh', this is actually a decent case for them too, to get the return value of foo out of that scope while still allowing auto. It would make sense to extend the if statement rule [¹] to with [²] and switch [³]. [¹]: http://dlang.org/grammar.html#IfStatement [²]: https://issues.dlang.org/show_bug.cgi?id=13526 [³]: https://issues.dlang.org/show_bug.cgi?id=11070 | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply