I have run into several situations where I would like to look at the
contents of 13!:13 in a program I am writing. If I am designing a tool then
I can't assume that debug is turned on. In addition, I don't know if having
debug on slows down execution. I suspect is does not. Never have run any
timing tests.
I think that the determination of the names of local variables is one such
use. Another is to be able to see the value of a local variable in a calling
routine, like can be done in APL.

On Tue, Jan 27, 2009 at 11:59 AM, Tracy Harms <[email protected]> wrote:

> I'd love a brief explanation of how the 'debug' mode makes the difference
> here.
>
> On 1/27/09, Raul Miller <[email protected]> wrote:
> > I re-read the original problem statement and
> > noticed that it expected Myverb to contain code
> > to get its own names and values.
> >
> > This will work if debug is turned on:
> >
> > Myverb=: 3 : 0
> >  a=. 'hello'
> >  b=. 3 4 2 9
> >  c=. 'big';'little';30 2
> >  NB. Expression to List names defined locally to this verb
> >  NB. (i.e. the list: 'a';'b';'c')
> >  0 7 {:: 13!:13 ''
> > )
> >
> > FYI,
> >
> > --
> > Raul
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> 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