Skip to content

Missing different-size int <-> NonZeroInt conversions #84352

Description

@clarfonthey

Right now, we have most of the integer type interconversions implemented, but we're missing some falliable NonZero conversions. Namely these:

  • iN -> NonZeroIM (where N != M)
  • uN -> NonZeroIM (where N != M)
  • iN -> NonZeroUM (where N != M)
  • uN -> NonZeroUM (where N != M)
  • NonZeroIN -> iM (where N != M)
  • NonZeroIN -> uM (where N != M)
  • NonZeroUN -> iM (where N != M)
  • NonZeroUN -> uM (where N != M)

Right now, all of the integer <-> non-zero integer conversions only operate on types of the same size, rather than all the different sizes that the usual conversions allow.

Not sure if these sorts of conversions would be accepted, but my guess is that closing the transitive gap would be a good idea.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-libsRelevant to the library team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions