Skip to content

Cannot export a core module type #269

Open

Description

@alexcrichton

I believe that given the binary format today there's not actually any means by which a core module type could be exported. I think this is because type exports always look up in the component type index space.

That being said I also am not sure why one would need to do this, so I mostly wanted to open this up as a possible "hole" in the binary encoding so we could explicitly decide one way or another.

Activity

  1. lukewagner commented on Oct 30, 2023

    @lukewagner
    Member

    Ah right, good point. I think this could be backwards-compatibly added by adding a third case to typebound, perhaps written (core eq <core:typeidx>). Does that sound right?

    And just to confirm: this limitation applies to imports as well, yes?

    Because core types are pure and thus don't break shared-nothing, it seems fine to add this. That being said, I'm having a hard time imagining a use case, so I'd be happy to wait for a while and file this under "things to fill in before 1.0", unless someone would like to do otherwise.

  2. alexcrichton commented on Oct 30, 2023

    @alexcrichton
    CollaboratorAuthor

    That all sounds reasonable to me yeah, and would agree it's ok to defer

  3. added
    enhancement
    on Oct 30, 2023
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions