Skip to content

Export Base.RefValue #40369

@jakobnissen

Description

@jakobnissen

RefValue is really useful - not just to create mutable const objects, but also to create mutable fields in large immutable structs. However, that requires importing Base.RefValue - which is not exported.

So what's the deal with RefValue? Is the type simply an internal implementation of Ref, not to be relied on in user code? If not, can we export it from Base? If so, can we have some exported type that can be used for a similar purpose?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions