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

Arg.current ocaml-3.07beta1 and Arg.current #8225

Closed
vicuna opened this issue Jul 24, 2003 · 1 comment
Closed

Arg.current ocaml-3.07beta1 and Arg.current #8225

vicuna opened this issue Jul 24, 2003 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Jul 24, 2003

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

Bug description

In ocaml-3.06 we have

let parse = parse_argv Sys.argv;;

In 3.07beta1 we have

let parse l f msg =
current := 0;
try
parse_argv Sys.argv l f msg;
with
| Bad msg -> eprintf "%s" msg; exit 0;
| Help msg -> eprintf "%s" msg; exit 2;

The resetting of Arg.current causes incompatibilities. In particular
Gerd Stolpman's findlib fails as he calls Arg.parse relying on setting
Arg.current.

I'm not saying this is a bug but it is a backward incompatibility and
should be documented.

@vicuna
Copy link
Author

vicuna commented Jul 25, 2003

Comment author: administrator

Hello John,

The resetting of Arg.current causes incompatibilities. In particular
Gerd Stolpman's findlib fails as he calls Arg.parse relying on setting
Arg.current.

I'm not saying this is a bug but it is a backward incompatibility and
should be documented.

It is a bug, and it is fixed in the working source. Thank you for the
report.

-- Damien

@vicuna vicuna closed this as completed Jul 25, 2003
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant