Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should Printexc.catch be deprecated? #2768

Closed
vicuna opened this issue May 27, 2001 · 2 comments
Closed

Should Printexc.catch be deprecated? #2768

vicuna opened this issue May 27, 2001 · 2 comments

Comments

@vicuna
Copy link

vicuna commented May 27, 2001

Original bug ID: 369
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: John Gerard Malecki
Version: 3.01
OS: any/all
Submission from: 192.149.105.76 (192.149.105.76)

Based on recent improvements such as "ocamlrun -b" should Printexc.catch be
deprecated? If i use Printexc.catch then my exception is "caught" and so the
ocamlrun -b will not give a backtrace. If i do not use Printexc.catch it seems
that the message is always as good as the message emitted by Printexc.catch
(regardless of whether i used ocamlc or ocamlopt to create the executable).

This lends me to believe that Printexc.catch serves no useful purpose and in
fact can only be a detriment.Is there something I am missing? Maybe all that is
required is some additional information to the Printexc module document.

@vicuna
Copy link
Author

vicuna commented May 27, 2001

Comment author: administrator

This lends me to believe that Printexc.catch serves no useful purpose and in
fact can only be a detriment.Is there something I am missing?

I agree with your analysis: Printexc.catch no longer serves any useful
purpose, and prevents ocamlrun -b and ocamldebug from handling the
stray exception correctly. The docs should mark this function as
"deprecated, do not use".

Best regards,

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Jun 29, 2001

Comment author: administrator

Added "deprecated" note in the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant