-
Notifications
You must be signed in to change notification settings - Fork 5
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
mlgmpidl and mlmpfr defines the same module #21
Comments
I don't mind prefixing mine, I could probably use |
Indeed that's a bit of an issue.
Do you mean that users of one of the packages would explicitly rename the |
Simple but not perfectDune as this feature:
If it is used for mlmpfr, it makes the module
So you get a deprecation message by the compiler if you use Mpfr to use Mlmpfr.Mpfr instead. It works well for static linking because if someone doesn't use Mpfr it is not linked. However when using dynamic linking or static linking with Solution that handle dynamic linkingPerhaps the best would be to use a separate library:
Advantage step 1, backward compatible and allow people to use a fully wrapped Mpfr safe version. step 2 and step 3, backward compatible just with the previous step. |
Good to know! I thought about it this weekend and I think I'll just simply rename the module, breaking the backward compatibility. As far as I know, you're the only active user of mlmpfr, so I can afford such a change for now. I'll prepare a PR and a new opam release in the next few days. |
Cool, thanks a lot @thvnx if you can do this. |
This change breaks backward compatibility. See issue #21
This change breaks backward compatibility. See issue #21
This patch remanes the main mlmpfr module from Mpfr to Mlmpfr to avoid name clashes with the mlgmpidl's mpfr module. Warning: it breaks the backward compatibility. See also thvnx/mlmpfr#21.
Should be good now. @bobot, there is a new release on opam that you can use for your next release of wh3 ;). |
Thank you, I hope we will be able to handle the transition without hurt. |
The module mpfr is defined in both libraries, so we can't link both of them at the same time (e.g Apron and Why3). It is possible to prefix one of them and still provide a backward compatible version that automatically make the translation. But @nberth and @thvnx are you willing to fix this incompatibility?
The text was updated successfully, but these errors were encountered: