Skip to content

.onUnload() is no longer called #253

Open

Description

@hadley

Probably because of the changes in 2d28e26 where we no longer call unloadNamespace(). So now we should call .onUnload() if present, and similarly handle the onUnload hook.

Activity

  1. lionel- commented on Sep 20, 2023

    @lionel-
    Member

    hmm, one problem I can see with this is that we try to preserve stale namespaces in a working state since it's so easy to run into dangling references, for example via an imports env populated before a load_all() call.

    So it depends on what conventions should apply to the unload hook. Is it UB to call into a namespace that has run this hook, or should the package gracefully handle this situation?

  2. DavisVaughan commented on Feb 27, 2024

    @DavisVaughan
    Member

    Not calling .onUnload() was intentional according to #148 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions