Comments (10)
The compat layer should be updated, but can I ask what you mean by "fails"?
from flexdll.
Here you go:
>ocaml
OCaml version 4.08.0+beta3
# Pervasives.compare;;
Line 1, characters 0-18:
1 | Pervasives.compare;;
^^^^^^^^^^^^^^^^^^
Alert deprecated: module Stdlib.Pervasives
Use Stdlib instead.
If you need to stay compatible with OCaml < 4.07, you can use the
stdlib-shims library: https://github.com/ocaml/stdlib-shims
from flexdll.
That's not failing, it's displaying a deprecation warning. So it's (quite reasonably) just the warning which is bothering you, not that there's a configuration somewhere where that is causing an actual error/failure?
from flexdll.
I apologize. I agree. It is indeed just a warning.
from flexdll.
It this issue to be "fixed" or "by design" please? I just want to get closure on what I should be expecting with upcoming ocaml release and flexdll
from flexdll.
@dra27. May I ask for clarity on above? Fix or not fix If fix: is my change OK?
from flexdll.
The warning will be displayed, as you observe.
Your fix works, but the reason it was written as Pervasives.compare
is to be explicit that compare
doesn't get accidentally shadowed. So it should really become Stdlib.compare
. This will require an update to the compatibility files - Compat407.ml
would need to be introduced with a module Stdlib
containing the compare
symbol.
from flexdll.
Ok. So now what?
from flexdll.
Either wait, or propose a patch!
from flexdll.
Well. I did propose a patch :-). So I will wait. Thank you David for your advice.
from flexdll.
Related Issues (20)
- Cannot relocate on OCaml 4.13.1 [Windows] HOT 1
- Implementing a less memory intensive read function HOT 9
- Temporary files not deleted on exit HOT 3
- Generate import library for exported function of the main executable file HOT 5
- findlib sometimes cannot be built on Windows HOT 3
- Support for /alternatename: linker directive needed for x86 HOT 2
- Fix parallel access to global symbol structures
- flexlink: simplify static linking with libstdc++
- Upgrade from msvcrt.lib to ucrt.lib HOT 6
- ** Fatal error: Cannot parse directive: -exclude-symbols:__alloca
- Compile ERROR with MSVC VS2019 HOT 3
- Fail to find a function in the executable (pg_query) HOT 5
- Conditionally link with gcc_eh
- MSYS2/ucrt64 support HOT 2
- [Question] How does Flexdll handling name mangling HOT 2
- Would a pull request allowing "__nm_" prefixes be accepted? HOT 4
- flexlink should cygpath %TEMP% before passing to bash HOT 1
- Issue with link order of archive files specified twice on the command line HOT 11
- "Cannot relocate" error with flexdll in OCaml for Windows 4.11 (and older versions) HOT 8
- `-print-search-dirs` may return `;`-delimited mixed paths on MSYS2 HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flexdll.