lisdude / toaststunt

A network accessible, multi-user, programmable, interactive system for the creation of LambdaMOO style MOOs / MUDs.
63 stars 26 forks source link

Feature request for the ability to force-invalidate WAIFs #40

Open jasonhsw opened 3 years ago

jasonhsw commented 3 years ago

I think it would be very useful to have a way to force WAIFs to be destroyed. For example, I have noticed that if WAIFs send text to players, references to them can get caught in places like the paranoid database, which prevents them from being destroyed. Maybe an invalidate function, or maybe an extension to the recycle function.

lisdude commented 3 years ago

By invalidate, do you mean changing the class to #-1 (like you had recycle()ed the original class) or actually deleting every reference to the waif from lists and properties?

I have a feeling you mean the latter but I'd like to check before rambling on!

jasonhsw commented 3 years ago

Well, I think that changing the class to #-1 might be easier to implement. Sort of like what happens to references to an anon when it gets destroyed by the recycle() builtin.