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

module Array = DynArray break ocamlcp #8369

Closed
vicuna opened this issue Nov 13, 2003 · 1 comment
Closed

module Array = DynArray break ocamlcp #8369

vicuna opened this issue Nov 13, 2003 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Nov 13, 2003

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

Bug description

Full_Name: Guillaume Marceau
Version: 3.07+2
OS: Gentoo Linux
Submission from: 128.148.206.106 (128.148.206.106)

The ocamlcp pretty-printer uses the arr.(0) syntax sugar to access Array.get and
Array.set. Unfortunatly, this breaks when the source code redirected the sugar
to some other module than the standard Array, for intance, to extLib's
DynArray.

gmarceau@canuk cytometry $ cat test.ml
module Array = DynArray

let foo i = match i with _ -> (DynArray.create ()).(0)

gmarceau@canuk cytometry $ ocamlc -I ~/lib/ocaml-extlib/ extLib.cma test.ml

gmarceau@canuk cytometry $ ocamlcp -I ~/lib/ocaml-extlib/ extLib.cma test.ml
File "/tmp/camlpp51563a", line 3, characters 31-53:
This expression has type int array but is here used with type
'a Array.t = 'a DynArray.t

@vicuna
Copy link
Author

vicuna commented Jun 16, 2004

Comment author: administrator

fixed --DD 2004-06-16

@vicuna vicuna closed this as completed Jun 16, 2004
@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