You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 29, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 29, 2026. It is now read-only.
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