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

%identity fails to compile #8019

Closed
vicuna opened this issue Feb 18, 2003 · 1 comment
Closed

%identity fails to compile #8019

vicuna opened this issue Feb 18, 2003 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Feb 18, 2003

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

Bug description

The program:

external (@@) : ('a -> 'b) -> 'a -> 'b = "%identity"
let x = sin @@ 1.0

kills ocaml and ocamlc with:

Fatal error: Bytegen.comp_primitive
Fatal error: exception Misc.Fatal_error

and ocamlopt with:

Fatal error: Cmmgen.transl_prim_2
Fatal error: exception Misc.Fatal_error

If the type of (@@) is changed to 'a -> 'a, then everything works fine.

The idea, obviously, is to mimic Haskell's $-operator, and I want it to
have the right type.

I'm using ocaml 3.06, specifically Debian's ocaml_3.06-15_i386.deb.

Lauri Alanko
la@iki.fi

@vicuna
Copy link
Author

vicuna commented Feb 23, 2003

Comment author: administrator

see #8020

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