Ok, that sounds consistent and viable.

Next question: how do we arrange for multiple J threads to safely
update (presumably different indices of) the same global variable?

Thanks,

-- 
Raul

On Thu, Apr 14, 2022 at 1:28 PM Henry Rich <[email protected]> wrote:
>
> single jbreak makes the next line fail with the 'attention interrupt'
> error, as if it had executed.  This is seen by all tasks.  This error is
> handled in the catch.; if there is a task without catch., it will (1)
> turn the error into break, stopping all threads, if debug is off; (2) go
> into debug suspension, if debug is on.
>
> A second jbreak would fail everything with 'break' error.
>
> Henry Rich
>
> On 4/14/2022 1:21 PM, Raul Miller wrote:
> > How is try/catch handled, in this context?
> >
> >
> > For example:
> >
> > routine=: {{
> >    try.
> >      6!:3 y
> >      'done'
> >    catch.
> >      'caught'
> >    end.
> > }}
> >
> >     routine 5 NB. then run jbreak once:
> > caught
> >
> > Thanks,
> >
>
>
> --
> This email has been checked for viruses by AVG.
> https://www.avg.com
>
> ----------------------------------------------------------------------
> 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