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

O'Caml 3.03 Alpha: CamlP4 vs. sugared Bigarrays #2990

Closed
vicuna opened this issue Oct 12, 2001 · 2 comments
Closed

O'Caml 3.03 Alpha: CamlP4 vs. sugared Bigarrays #2990

vicuna opened this issue Oct 12, 2001 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Oct 12, 2001

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

Bug description

CamlP4 interferes distructively with the syntactic sugar for
bigarrays:

ohl@heplix4:~circe2$ cat bug.ml
let apply f a i =
  f a.{i}

ohl@heplix4:~circe2$ ocamlc -c bug.ml

ohl@heplix4:~circe2$ ocamlc -pp camlp4o -i bug.ml
File "bug.ml", line 2, characters 8-9:
Parse error: 'with' expected after [expr level simple] (in [expr])
Preprocessing error

I cannont avoid CamlP4 since the code uses a few trivial stream
parsers. (As a kludge, I can desugar my few Bigarrays references).

Thorsten Ohl, Physics Department, TU Darmstadt -- ohl@hep.tu-darmstadt.de
http://heplix.ikp.physik.tu-darmstadt.de/~ohl/ [<=== PGP public key here]

@vicuna
Copy link
Author

vicuna commented Oct 12, 2001

Comment author: administrator

Hi,

On Fri, Oct 12, 2001 at 04:42:44PM +0200, ohl@hep.tu-darmstadt.de wrote:

ohl@heplix4:~circe2$ cat bug.ml
let apply f a i =
  f a.{i}
ohl@heplix4:~circe2$ ocamlc -pp camlp4o -i bug.ml
File "bug.ml", line 2, characters 8-9:
Parse error: 'with' expected after [expr level simple] (in [expr])

Ok, this is fixed.

--
Daniel de RAUGLAUDRE
daniel.de_rauglaudre@inria.fr
http://cristal.inria.fr/~ddr/

@vicuna
Copy link
Author

vicuna commented Oct 26, 2001

Comment author: administrator

Fixed by DdR 2001-10-12

@vicuna vicuna closed this as completed Oct 26, 2001
@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