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
Every class is created with a weak table __instances (two underscores) that goes completely unused. Is this code dead? Perhaps it has been included for support with other libraries?
On a related note, shouldn't classes keep weak references to their own instances? It seems like the idea was there, and it could certainly make retrieving lists of a class's instances faster than having to constantly filter them out from the global record through the instances() function.
The text was updated successfully, but these errors were encountered:
Every class is created with a weak table __instances (two underscores) that goes completely unused. Is this code dead? Perhaps it has been included for support with other libraries?
On a related note, shouldn't classes keep weak references to their own instances? It seems like the idea was there, and it could certainly make retrieving lists of a class's instances faster than having to constantly filter them out from the global record through the instances() function.
The text was updated successfully, but these errors were encountered: