Skip to content

Should Pointer(T)#== always compare the address, regardless of T? #16415

@ysbaddaden

Description

@ysbaddaden

I'm wondering if Pointer#== should always compare the address, regardless of the pointer type. They're partially identical because they point to the same start address. The exact memory size may differ between types, though. And interpretation differs anyway. 🤔

But it's not about the objects themselves, it's about pointers to them. And pointers are primarily defined by their address.

Originally posted by @straight-shoota in #16412 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions