On Tue, 18 Nov 2003, Austin Hastings wrote: > > > > -----Original Message----- > > From: Dan Sugalski [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, November 18, 2003 4:34 PM > > To: Language List > > Subject: RE: Control flow variables > > > > > > On Tue, 18 Nov 2003, Austin Hastings wrote: > > > > > This seems excessive, but easily discarded during optimization. > > On the other > > > hand, I don't trust the "last statement evaluated" behavior for > > loops, since > > > the optimizer could very well do surprising things to loop statements. > > > (Likewise, however, for scalar control structures.) > > > > This shouldn't be a problem. If there's potential ambiguity then the > > optimization can't be applied. Modulo optimizer bugs you'll be fine. > > > > That's the problem I have with it. I'm inclined to believe that the > optimization is more important than the postcondition, most of the time.
Then don't do the things that would disable the optimization. It's reasonably straightforward to tell whether a block's value may be used--if there's any following statement then, well, it isn't. Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk