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?
to your account
Original bug ID: 4539
Status: closed (set by @damiendoligez on 2015-01-16T21:50:47Z)
Target version: 4.03.0+dev / +beta1
Fixed in version: 4.03.0+dev / +beta1
Category: ~DO NOT USE (was: OCaml general)
Tags: patch, junior_job
Monitored by: @gasche @yallop
If f and g are functions, then
f = g, f < g, f >= g, etc. all produce the exception
Invalid_argument "equal: functional value"
Changing this to "compare: functional value" would be less confusing.
The text was updated successfully, but these errors were encountered:
Comment author: @damiendoligez
I'm not sure we want to make this change, since it might break some badly-written programs.
Sorry, something went wrong.
I've changed my mind and I think we should do it.
Comment author: nbraud
Here is a tentative patch.
Seemed trivial enough to be easily done, and I tested that it works with the toplevel, the bytecode compiler and the native code compiler (at least on amd64).
Patch applied in trunk (rev 15778).
No branches or pull requests