Skip to content
This repository was archived by the owner on Nov 29, 2026. It is now read-only.
This repository was archived by the owner on Nov 29, 2026. It is now read-only.

feat: Add unrolling and rolling #98

Open

Description

@Zffu

Introduce a system of "handlers" whenever a specific type is created or freed / goes out of scope. This system is called unrolling and rolling.

This could be registered within a struct, layout or an enum. The rolling handler is triggered whenever an instance of the given type is created in any way shape or form (if the creation doesn't have the fast operator attached to it). The unrolling handler is triggered whenever an instance of the given type goes out of scope in any way shape or form.

Example Code

struct myStruct {
    s32 myInt
    bool myBool

    roll(this) {
        // Do stuff with the created instance here
    }

    unroll(this) {
      // Do stuff to handle the unrolling of the instance here 
    }

Activity

  1. self-assigned this
    on Apr 22, 2026
  2. added theissue type on Apr 22, 2026
  3. moved this to Todo this release in Quickfallon Apr 22, 2026
  4. moved this from Todo this release to Todo Later in Quickfallon May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

  • Status
    Todo Later

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions