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

Re: currified constructor error #2497

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

Re: currified constructor error #2497

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

Comments

@vicuna
Copy link

vicuna commented Apr 23, 2004

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

Bug description

Please disregard my message, the problem is fixed.

Ekaterina Trofimova wrote:

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

--
Ekaterina Trofimova * Austin, Texas 78729
Freescale NCSG Somerset Design Ctr. * Email: ekaterina.trofimova@motorola.com
7700 West Parmer Lane * Phone: (512) 996-7392
[ ] General Business Use [x] Internal Use Only [ ] Confidential Proprietary


<!doctype html public "-//w3c//dtd html 4.0 transitional//en">

Please disregard my message, the problem is fixed.

Ekaterina Trofimova wrote:

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

-- 
 Ekaterina Trofimova                 *  Austin, Texas 78729
 Freescale NCSG Somerset Design Ctr. *  Email: ekaterina.trofimova@motorola.com
 7700 West Parmer Lane               *  Phone: (512) 996-7392
 [ ] General Business Use  [x] Internal Use Only  [ ] Confidential Proprietary

 



@vicuna
Copy link
Author

vicuna commented Apr 27, 2004

Comment author: administrator

See #2496

@vicuna vicuna closed this as completed Apr 27, 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