garrysmod
garrysmod copied to clipboard
Added table.InheritNoBaseClass and table.Inherit now recursively inherits sub-tables
Additionally, table.Inherit now has an additional argument to choose what value it wants to use to store the baseclass
Do you think this functionality should be added as a new argument, instead? It might break compatibility if this behaviour wasn't expected.
Wouldn't it be more sensible to add a new function with the new functionality as table.InheritDeep or table.InheritRecursive, rather than changing an existing function and unnecessary risk breaking existing scripts and then adding the old function under a different name?