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

currified constructor error #2496

Closed
vicuna opened this issue Apr 23, 2004 · 1 comment
Closed

currified constructor error #2496

vicuna opened this issue Apr 23, 2004 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Apr 23, 2004

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

Bug description

Hi,

Ocaml 3.07 which was built with gcc 3.3.2 produces this error message

File "regexp.ml", line 94, characters 29-50:
Parse error: currified constructor
Preprocessor error

exception NotSupported of string
exception IllegalIntRange of int * int
exception IllegalCharRange of char * char

let int_range_list n1 n2 =
if ( n1 > n2 ) then raise (IllegalIntRange n1 n2) <--- complains
about this line
else
let rec int_list n list =
if ( n > n2 ) then list
else int_list (n+1) (list@[string_of_int n])
in
int_list n1 [];;

Ocaml 3.06 does not have this problem.

Please tell what could be wrong here.

Thanks

Ekaterina

@vicuna
Copy link
Author

vicuna commented Apr 27, 2004

Comment author: administrator

USer figured it out (see #2497)

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