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

warning: the package uses the Julia-internal implementation detail TwicePrecision #23

Open
nsajko opened this issue Aug 17, 2024 · 3 comments

Comments

@nsajko
Copy link

nsajko commented Aug 17, 2024

import Base: convert, TwicePrecision

help?> Base.TwicePrecision
  │ Warning
  │
  │  The following bindings may be internal; they may change or
  │  be removed in future versions:
  │
  │    •  Base.TwicePrecision

  TwicePrecision{T}(hi::T, lo::T)
  TwicePrecision{T}((num, denom))

  A number with twice the precision of T, e.g., quad-precision if T =
  Float64.

  │ Warning
  │
  │  TwicePrecision is an internal type used to increase the
  │  precision of floating-point ranges, and not intended for
  │  external use. If you encounter them in real code, the most
  │  likely explanation is that you are directly accessing the
  │  fields of a range. Use the function interface instead,
  │  step(r) rather than r.step
@putianyi889
Copy link
Owner

putianyi889 commented Aug 17, 2024

Can you explain when this implementation can be breaking? It is required to convert the type parameters of StepRangeLen.

@nsajko
Copy link
Author

nsajko commented Aug 17, 2024

At any, even minor, release of Julia. At any commit in Julia, really. Technically you're supposed to pin specific Julia versions in your Project.toml if you must trespass on the internals.

@putianyi889
Copy link
Owner

I'm not gonna update Project.toml on every Julia update. However it could be possible to trigger GitHub Actions to do the tests on Julia update. I'll leave this issue open until I (or someone) figure out how to do that.

@putianyi889 putianyi889 changed the title bug: the package uses the Julia-internal implementation detail TwicePrecision warning: the package uses the Julia-internal implementation detail TwicePrecision Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants