Skip to content

Implement the rest of the possible casts #26

Closed

Description

@solson

Cast kinds:

  • Unsize from array pointer to slice pointer
  • Unsize to trait object pointer¹
  • Reify function pointer
  • Everything else²

¹ This goes along with implementing vtables and virtual method calls.

² Currently casts with same-sized source and destination are implemented by a blind copy and casts from fat pointers copy just the pointer part. This works well enough to pass most of our existing tests but it's extremely hacky. Search for the Misc case.

This will likely require multiple PRs.

Activity

  1. added
    C-enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancement
    on Jun 15, 2016
  2. modified the milestone: on Aug 17, 2016
  3. added a commit that references this issue on Feb 4, 2022
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-enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions