It is possible to have a Base
pointing to a dead object
#711
Labels
question
Not a problem with the library, but a question regarding usage.
Using this code:
We can get a hold of a
Base
pointing to a dead object. It is unclear to me if this is a soundness issue or not, it seems like any case that could cause unsoundness due to this has proper runtime checks in place. But i do know we generally assume aBase
will always point to a live object.Is this an issue we need to worry about? If so then what should we do, it's unclear to me if it's even possible to fix this issue. Best thing we could do is maybe just documenting explicitly that this is possible, and thus not something we can rely on as a safety invariant.
The text was updated successfully, but these errors were encountered: