You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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:
and ocamlopt with:
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
The text was updated successfully, but these errors were encountered: