|
If you want to subclass strings, wrap them in a table with an appropriate metatable that forwards to the string metatable. This isn’t really sublcassing strings of course, it’s creating an object that happens to have a string as it’s data and inherits string functionality, which is really what i think you are asking for. —Tim |