originalfoo / Proto

Like the Style mod, but for all other prototypes!
MIT License
0 stars 0 forks source link

Create helper for removing stuff #1

Open originalfoo opened 8 years ago

originalfoo commented 8 years ago

Could be something like:

proto[type].remove 'name'
-- that means all proto.props need to be tables with _call metamethods
-- but worth it for clean semantic code imo

Depending on the type, the scope of places to check for references to the thing being removing will be different.

Some forum topics:

As .remove will need to find stuff that references the thing, maybe that could be exposed too?

local refs = proto[type].references 'name'