[mercury-users] Locally defined recursive procedures in Mercury
Ralph Becket
rafe at cs.mu.OZ.AU
Sun Jun 5 14:21:06 AEST 2005
Gregory D. Weber, Saturday, 4 June 2005:
> Is it possible to define a recursive procedure within another
> procedure, similar to Scheme's letrec or CommonLisp's labels?
The short answer is "no". We have discussed adding named local
preds/funcs to Mercury, but it's not trivial to implement and to
date we haven't found writing separate preds/funcs (i.e. non-local
ones) to be that much hassle.
-- Ralph
--------------------------------------------------------------------------
mercury-users mailing list
post: mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the users
mailing list