Re: [Jprogramming] Stop command when testing

2020-11-26 Thread HH PackRat
Hi, Don! On 11/27/20, Don Kelly wrote: > That is fine- it is something from "TEurbo Basic" and implemented in APL > , in a way.and is very useful, but it only works if you detect, during > coding, when to deal with a problem due, often, to coding errors. What > is needed is an interrupt outside o

[Jprogramming] Merging (amending?) two different data files

2020-11-26 Thread HH PackRat
Hello again! Another stock market related question: I need to merge the data of two different data files on the basis of common dates. QUESTION 1 -- I know that I can use a "for." loop, but I was wondering if there was perhaps a better (perhaps faster?), more J-like approach. The basic idea i

Re: [Jprogramming] Stop command when testing

2020-11-26 Thread Don Kelly
That is fine- it is something from "TEurbo Basic" and implemented in APL , in a way.and is very useful, but it only works if you detect, during coding, when to deal with a problem due, often, to coding errors. What  is needed is an interrupt outside of J (as an interrupt optio may not be availa

Re: [Jprogramming] Stop command when testing

2020-11-26 Thread HH PackRat
I figured out how to do what I wanted: . . . . . . goto_stop. . . . . . . label_stop. ) The name "stop", of course, can be any label name you wish. In effect, this pattern can be used to "rem out" (remark out) any portion of code that you don't want executed at a particular moment

Re: [Jprogramming] Stop command when testing

2020-11-26 Thread 'Pascal Jasmin' via Programming
on windows it is in bin subfolder to J installation. On Thursday, November 26, 2020, 10:05:08 p.m. EST, Don Kelly wrote: that is fine-but when  a J  program is running  wild- how do I bring up "break.bat"?  I would like to know how to do this, other than ctrl alt-del  and then shut

Re: [Jprogramming] Stop command when testing

2020-11-26 Thread Don Kelly
that is fine-but when  a J  program is running  wild- how do I bring up "break.bat"?  I would like to know how to do this, other than ctrl alt-del  and then shut down J. Don Kelly On 2020-11-26 4:30 p.m., 'Pascal Jasmin' via Programming wrote: there is also a "break" utility (break.bat in win

Re: [Jprogramming] Stop command when testing

2020-11-26 Thread 'Pascal Jasmin' via Programming
there is also a "break" utility (break.bat in windows) which will stop a "runaway" program/function when executed.. On Thursday, November 26, 2020, 06:10:10 p.m. EST, chris burke wrote: Use dbstopme to stop at a specific line, see the example below. A non-empty argument is a test, so

Re: [Jprogramming] Stop command when testing

2020-11-26 Thread chris burke
Use dbstopme to stop at a specific line, see the example below. A non-empty argument is a test, so stop if true. Caution: if using 902 beta, get the latest beta and qt addon, as there have been recent updates to debug. foo=: 4 : 0 a=. 2 + y dbstopme'' b=. a * 5 x + b ) dbg 1 2 foo 3 On Thu, Nov

[Jprogramming] Stop command when testing

2020-11-26 Thread HH PackRat
I could have sworn that, a couple of months ago, someone posted some code that included a "stop" command of some sort in explicit coding, but I can't remember how it was done. I cannot find such a command anywhere in NuVoc. Searching the wiki brought back the "Vocabulary/JBreak" ancillary page, w