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: %identity fails to compile #8020

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

Re: %identity fails to compile #8020

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

Comments

@vicuna
Copy link

vicuna commented Feb 18, 2003

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

Bug description

All right, it was an RTFM issue. Sorry to bother. This works:

type ('a, 'b) fn = 'a -> 'b

external (@@) : ('a, 'b) fn -> ('a, 'b) fn = "%identity"

let x = sin @@ 1.0

A bit kludgy in my opinion (type definitions don't define synonyms)
but I guess I can live with that.

Lauri Alanko
la@iki.fi

@vicuna
Copy link
Author

vicuna commented Feb 23, 2003

Comment author: administrator

see #8019

@vicuna vicuna closed this as completed Feb 23, 2003
@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