Skip to content

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

@TurkeyMan

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions