Yuvaraj Athur Raghuvir wrote: > I have been experimenting with locales and OO programming. > > I want to, at runtime, > a) create a class (can be done by creating a locale) > b) create a base class for the created class working at the instance level. > c) have access to instances that belong to a certain class. > > (a) works fine with the creation of boxed locales and inserting the > create & > destroy verbs (See mail chain following [1]). However, when I view the > contents of the locale created dynamically using the view utility verb in > Learning J [2], I am not able to see the verbs I created in the locale. Why > is that so? > > (b) would mean that I should be able to simulate the verb coinsert at > runtime effectively changing the type hierarchy. In J, I assumed that would > mean inserting a new locale in the the locale path. >...
I don't understand all these questions, but sense there is some misunderstand about what J is doing. There is a suggestion that J has a "runtime" mode that is fundamentally different from the development mode. But the only real difference between developing and running an application is that the IDE reads in more scripts at outset than are normally required for an application. The J interpreter itself makes no distinction between runtime and development. Hence the "at runtime" should not be relevant here. Similarly, for "dynamically" - everything in J is created dynamically, whether it is in the IDE or when running an application. For that matter, the IDE itself is created dynamically. Thus, whatever the questions mean, if you can do them in the IDE, you can do them in an application. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
