Hey everybody,

In J602 there was a markup Instruction used in labs called PREPARE that would 
bracket J commands to allow you to do things behind the scenes when running a 
lab file .ijt   

I wonder if this would be an option to have scripts load without having the 
learner aware of it. I think that the opengl lab works this way. The actual lab 
script is in 602/system/extras/labs/graphics/opengl.ijt and you can see PREPARE 
working on the first page. The authoring lab touches on this as I remember. I 
am not sure that this facility has transferred to 701 but if it hasn't it would 
be nice if that functionality was retained. 

Cheers, bob

On 2012-09-18, at 1:39 PM, Ric Sherlock wrote:

> 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

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to