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

Camlp4 and optional arguments #8245

Closed
vicuna opened this issue Aug 22, 2003 · 2 comments
Closed

Camlp4 and optional arguments #8245

vicuna opened this issue Aug 22, 2003 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Aug 22, 2003

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

Bug description

Full_Name: Martin Jambon
Version: 3.07-beta1
OS: i386/Linux
Submission from: f08a-7-100.d1.club-internet.fr (212.194.174.100)

Reprinting classic syntax fails with optional arguments:

$ cat toto.ml
let f ?a () = ()

$ camlp4o -I +camlp4 pr_o.cmo toto.ml
Failure: unable to print patt

However, optional arguments with default value work as in `let f ?(a = 0) () =
...'

This problem didn't happen with the development version I was using before
(3.06+20 (2002-12-12))

@vicuna
Copy link
Author

vicuna commented Aug 25, 2003

Comment author: administrator

Hello,

I've fixed it in the CVS. Thanks for the report,

-- Michel

martin_jambon@emailuser.net wrote/écrivait (Fri, Aug 22, 2003 at 08:02:26PM +0200):

Full_Name: Martin Jambon
Version: 3.07-beta1
OS: i386/Linux
Submission from: f08a-7-100.d1.club-internet.fr (212.194.174.100)

Reprinting classic syntax fails with optional arguments:

$ cat toto.ml
let f ?a () = ()

$ camlp4o -I +camlp4 pr_o.cmo toto.ml
Failure: unable to print patt

However, optional arguments with default value work as in `let f ?(a = 0) () =
...'

This problem didn't happen with the development version I was using before
(3.06+20 (2002-12-12))

@vicuna
Copy link
Author

vicuna commented Aug 25, 2003

Comment author: administrator

Fixed 2003-08-25 by MM

@vicuna vicuna closed this as completed Aug 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