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

%revapply and %apply do not work properly unless they are fully applied. #5735

Closed
vicuna opened this issue Aug 21, 2012 · 1 comment
Closed

%revapply and %apply do not work properly unless they are fully applied. #5735

vicuna opened this issue Aug 21, 2012 · 1 comment
Assignees

Comments

@vicuna
Copy link

@vicuna vicuna commented Aug 21, 2012

Original bug ID: 5735
Reporter: furuse
Assigned to: @lefessan
Status: closed (set by @xavierleroy on 2015-12-11T18:07:59Z)
Resolution: fixed
Priority: high
Severity: major
Version: 4.00.0
Fixed in version: 4.00.1+dev
Category: ~DO NOT USE (was: OCaml general)

Bug description

The following code demostrates 4.00.0's revapply works correctly only when it is fully applied:

external (|>) : 'a -> ('a -> 'b) -> 'b = "%revapply"
let revapply = (|>) <--- error
let apply1 = (|>) 1 <--- error

In the both cases, the compiler complains: Error: The external function `%revapply' is not available.

%apply also has the same problem.

@vicuna
Copy link
Author

@vicuna vicuna commented Aug 21, 2012

Comment author: @lefessan

Fixed in SVN trunk/ and version/4.00, commits 12870 and 12871

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants