Forum Discussion
Tom_Welch
12 years agoNew Contributor
I don't think this is correct. I can and have used defintions like this from separate modules in TC 10. If you create a constructor, and specify the inheritance chain, you can use the constructor from other modules. If you want to modify a built in 'class' like Array, you need to create an instance of that class within the module (in terms of scope, it needs to be an object on that module, rather than within a function/ object) that defines the prototype modification (var arr = [];) and then you should be able to use it from other modules. I don't understand why the modifcation isn't working in this instance.