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 compat #8075

Closed
vicuna opened this issue Mar 20, 2003 · 2 comments
Closed

camlp4 compat #8075

vicuna opened this issue Mar 20, 2003 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Mar 20, 2003

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

Bug description

Ah, c'est dur quand on veut utiliser tous les traits a la fois...

frouaix:/tmp$ cat x.ml
class foo = fun ?x ->
object
end
frouaix:/tmp$ ocamlc -v
The Objective Caml compiler, version 3.06+21 (2003-01-08)
Standard library directory: /usr/local/lib/ocamlexp/lib/ocaml
frouaix:/tmp$ ocamlc -c x.ml
File "x.ml", line 1, characters 17-18:
Warning: This optional argument cannot be erased
frouaix:/tmp$ ocamlc -pp camlp4o x.ml
File "x.ml", line 1, characters 16-18:
Parse error: [class_fun_def] expected after 'fun' (in [class_expr])
Preprocessor error
frouaix:/tmp$

--f

@vicuna
Copy link
Author

vicuna commented Mar 31, 2003

Comment author: administrator

class foo = fun ?x ->
object
end
frouaix:/tmp$ ocamlc -pp camlp4o x.ml
Parse error: [class_fun_def] expected after 'fun' (in [class_expr])

Je pense avoir fixe ce bug, mais je ne connais pas grand-chose a

  1. les objets
  2. les labels
  3. camlp4

donc j'ai pu faire une betise. A tester avec prudence.

-- Damien

@vicuna
Copy link
Author

vicuna commented Mar 31, 2003

Comment author: administrator

fixed by DD 2003-03-31

@vicuna vicuna closed this as completed Mar 31, 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