-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Description
RBXScriptSignal is not serialized or represented in the Roblox file formats, but is associated to specific instances at run time. Implementing this without the RBXScriptSignal being directly owned by the Instance means creating a garbage collector.
I can think of three different implementations of this, and have written two:
- Generics (Generic WeakDom using AsRef<Instance> #488)
- awful but extensible
- Feature gated field (Add Userdata Field To rbx_dom_weak::Instance Behind Feature Flag #513)
- surgical but not useful for others
- could be changed to
Option<Box<dyn std::any::Any>>to drop mlua (implemented here)
- Implement a generic field for Instance rather than Instance itself being a generic
- this would probably be a smaller mess than 1 and less awful
I am looking for feedback on whether this can make sense upstream or whether I should continue to maintain a fork of various rbx-dom crates. Thanks.
Metadata
Metadata
Assignees
Labels
No labels