---Raul Miller wrote: > Sherlock, Ric wrote: > > B) add new optional argument to the deoptim routine > > enabling the user to pass the name of a verb that > > should be called when reporting progress. > > > > Is this a sensible route to take? Are there other better ways? > > Variations on this theme include: > > [1] providing an adverb where you can pass this verb directly, rather > than by name. > > [2] Pass an optional gerund which represents this verb. > > [3] Using a predefined name whose definition can be overridden by > the user. > > [4] Using a predefined name which is used relative to the > current locale, > and whose definition can be overridden by the user, using J's locale > mechanism.
Thanks, lots of ideas to investigate here. I'm really glad I asked! I will play with these a bit more but my initial reaction to these different options are as follows: [1] Not so attractive for an optional argument for the reasons you mention. [2] I'm really interested in playing with this one to see how easy it is to specify and use the gerund. [3] That would be relatively easy to implement but I don't like the idea of the user fiddling with definitions in the addon locale. Also any change will be global to all instances of deoptim. [4] Addresses issues for [3] but adds complexity, will need to see how much of a hassle that will be. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
