<div dir="ltr">On Thu, Jun 27, 2013 at 1:33 PM, Richard Smith <span dir="ltr"><<a href="mailto:richard@metafoo.co.uk" target="_blank">richard@metafoo.co.uk</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"><div class="im"><span style="color:rgb(34,34,34)">I'm not sure how reasonable it is for us to avoid warning on generated</span><br>
</div>
code; such code frequently contains constructs which would be<br>
completely unreasonable if manually typed by a human. In this<br>
particular case the code is somewhat unreasonable even to be produced<br>
by a machine, and flex should just be fixed -- there is no good reason<br>
to mark a variable as 'register' any more.</blockquote><div><br></div><div>I want to chime in with a bad reason to use the register keyword.  In the Python interpreter loop, there are variables live across the loop that should be register allocated.  Many developers are tempted to use them as out params for routines, thereby taking their addresses and confusing alias analysis.  If you use the register keyword, they can't take it's address, thereby avoiding the slowdown.  =P</div>
</div></div></div>