Skip to content

Document ?self parameter disownment #408

Closed
@bradrn

Description

@bradrn

While implementing Kleidukos/ghcup-gtk#7, I discovered that the ?self implicit parameter is disowned as soon as the event callback finishes (since it’s implemented using withTransient). As far as I can tell, this is not documented anywhere, even though accidentally using ?self later can easily result in nasty bugs. It would be nice to document this behaviour, though I’m not sure where the best place to do so would be.

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