What is inst_data actually for?
# announcements
n
What is inst_data actually for?
s
cc: @max
n
So far all I've found it actually used for is the
info_str
prefix on some logging 🙂
Looks like it's primarily a "for future expansion" on the plugin system
s
I am afk, but I believe it is what is passed into a static method when it is constructed via the config system. It is then by convention stashed in the object and used when it is marshaled between processes via InstanceRef
n
Yeah, but there's not very much actual use of it. It's all cabled up as basically a fancy userdata pointer for the core code to attach some data to plugin instances
m
it's an instance of
ConfigurableClassData
it's the serializable pointer to the module + class to instantiate plus the config as yaml
see
ConfigurableClassData.rehydrate
👍 1