Skip to content

Dissallow pointer_from_objref on immutable values #15857

@ivarne

Description

@ivarne

See discussion in https://groups.google.com/forum/#!topic/julia-dev/F9PggSikPW8 that requests an issue to track this.

@vtjnash

this is not C – variables don't have first-class memory addresses (also, pointer_from_objref on a immutable returns a semi-random number that was correlated at some point in the past with the value).

@StefanKarpinski

This should really not be allowed: calling pointer_from_objref on an immutable should be an error.

Metadata

Metadata

Labels

docsThis change adds or pertains to documentation

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions