[m-rev.] State variable syntax transformation

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Feb 26 18:31:41 AEDT 2002


On 26-Feb-2002, Michael Day <mikeday at bigpond.net.au> wrote:
> 
> > > 	( if we_have_a_problem(X) then throw_an_exception(X) )
> > 
> > Code like this should be avoided, since it will get entirely optimized away
> > if you compile with `--no-fully-strict'.
> 
> This is something I've done several times for debugging purposes. I would 
> have thought that the compiler won't optimise things away that have 
> determinism erroneous?

The determinism of the goal `if we_have_a_problem(X) then throw(...) else true'
is `det', not `erroneous'.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list