Yuvaraj Athur Raghuvir wrote:
> When I tried running different labs one after another, I got into conflicts
> of definition. Clearly some of the letters are used differently in the
> different labs and the sequence of use determines the current definition in
> the session.
> 
> So, I was wondering if any of the following options could be applied to the
> current session:
> a) Define a locale for the Lab that gets reset or is indicated to be reset
> when the lab terminates or abandoned respectively.
> b) Labs could "refresh" the session memory in a sense that the required
> definitions for the lab could be selectively overwritten. This way the
> assumptions of the Lab author is reflected in the session memory state as
> well.

A lab is intended to be run in a normal session, and it is expected that
the user will experiment while running the lab, or after it is
completed. Running them in a special locale, or erasing all definitions
after the last lab section is run, would make them less useful.

In theory, labs should not redefine standard utilities, and each lab
should ensure that required definitions are available. But there is no
easy way to enforce that after running a lab, the system is in a clean
enough state to run any other lab. The only reliable way to handle this
is to restart J when running a new lab.

If you know of specific problems when running one lab after another, let
me know and I will try to get them fixed.

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

Reply via email to