Skip to content

cast(ref T)... as shorthand for *cast(T*)&... #20644

Description

@TurkeyMan

Can we enhance cast expressions to do lvalue thunk's?
This classic pattern *cast(T*)&...; there's a lot of cognitive baggage going on there!
We should be able to write cast(ref T)... instead.

Metadata

Metadata

Assignees

No one assigned

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions