Git Product home page Git Product logo

Comments (10)

dra27 avatar dra27 commented on June 14, 2024

The compat layer should be updated, but can I ask what you mean by "fails"?

from flexdll.

jakoblichtenberg avatar jakoblichtenberg commented on June 14, 2024

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.

dra27 avatar dra27 commented on June 14, 2024

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.

jakoblichtenberg avatar jakoblichtenberg commented on June 14, 2024

I apologize. I agree. It is indeed just a warning.

from flexdll.

jakoblichtenberg avatar jakoblichtenberg commented on June 14, 2024

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.

jakoblichtenberg avatar jakoblichtenberg commented on June 14, 2024

@dra27. May I ask for clarity on above? Fix or not fix If fix: is my change OK?

from flexdll.

dra27 avatar dra27 commented on June 14, 2024

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.

jakoblichtenberg avatar jakoblichtenberg commented on June 14, 2024

Ok. So now what?

from flexdll.

dra27 avatar dra27 commented on June 14, 2024

Either wait, or propose a patch!

from flexdll.

jakoblichtenberg avatar jakoblichtenberg commented on June 14, 2024

Well. I did propose a patch :-). So I will wait. Thank you David for your advice.

from flexdll.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.