garrysmod icon indicating copy to clipboard operation
garrysmod copied to clipboard

Added table.InheritNoBaseClass and table.Inherit now recursively inherits sub-tables

Open Kefta opened this issue 8 years ago • 2 comments

Additionally, table.Inherit now has an additional argument to choose what value it wants to use to store the baseclass

Kefta avatar Dec 23 '16 12:12 Kefta

Do you think this functionality should be added as a new argument, instead? It might break compatibility if this behaviour wasn't expected.

Kefta avatar Jul 26 '18 21:07 Kefta

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?

robotboy655 avatar Jun 28 '23 13:06 robotboy655