On Wed, Sep 19, 2012 at 7:52 AM, Ian Clark <earthspo...@gmail.com> wrote: > > Yes, I too would like to combine the whole thing in one single addon. > You'll recall the extensive correspondence (17 posts) that followed my > original proposal to do just this, and how best to do it? > http://www.jsoftware.com/pipermail/programming/2012-September/029259.html > The LAPACK way would be to keep separate "loader" scripts in > format/zulu and run them like this: > load 'format/zulu/lite' > load 'format/zulu/bare' > ...etc. > I can have as many loader scripts as I can fancy a need for. A lot > less trouble than releasing and maintaining three separate addons. But > I got the hint from the forum that using load/require in this way is > "untidy", and that the preferred programmer interface for using any > addon is quite simply: > load 'category/addon'
I don't think you should see this as untidy. I don't believe that this functionality is undesirable or unintended. I suggest you have the main/default package named zulu.ijs, but that you include your other scripts in the same addon. Then (load 'format/zulu') will work and load the script most users will need, but (load 'format/zulu/lite') and (load 'format/zulu/bare') will work too if the user needs them. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm