[mercury-users] Stack overflow detection?

obo at ruk.cuni.cz obo at ruk.cuni.cz
Tue May 11 22:03:38 AEST 2004


Would it be possible to detect stack overflow (both detstack and
nondetstack) within Mercury? I.e. to let me wrap a critical part of my
code with a try/2 and catch the exception?

(Generally speaking, it would be better to redesign the code and run into
the plain memory exhausted error later, but this is not worth the effort
for my task, where I can simply reject all unnice examples.)

Thanks, O.

Ondrej Bojar (mailto:obo at cuni.cz)

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