[m-dev.] for review: a new way of handling failure

Fergus Henderson fjh at cs.mu.oz.au
Fri Oct 31 19:44:38 AEDT 1997


Zoltan Somogyi, you wrote:
> 
> > > <ul>
> > > <il> Best case.
> > > Before the code generator enters a goal that is being committed across,
> > > it saves the value of maxfr,
> > > pushes a new entry on the resume point stack indicating
> > > the resume point for getting control back if the goal has no solutions
> > > and sets the redoip slot of the top frame (which is this frame)
> > > to the stack continuation in that resume point.
> > 
> > I think the remark in parentheses above is wrong.  Why is it guaranteed
> > that the top frame will be the same as the current frame?
> 
> Because a case is not best case unless curfr_is_maxfr=yes. This is also true
> for middle case; only in worst case is it not guaranteed to be the case.

Oh yeah.  I'll try that again with brain switched on next time ;-)

-- 
Fergus Henderson <fjh at cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3         |     -- the last words of T. S. Garp.



More information about the developers mailing list