To get an error you need to open r.  Your verb finished without error; the
error was when r was opened for display.

Henry Rich

On Wed, Jul 12, 2023, 7:03 PM Don Guinn <[email protected]> wrote:

> Thank you. That makes sense. Just getting into playing with threads.
> However, consider this 3 line script:
>
> r=:5 T. 5
> {{try. r catch. 'Error Issued' end. }}''
> echo 'Got here'
>
> This is what I get when it's executed (using ctrl+e):
>
> r=:5 T. 5
>
> {{try. r catch. 'Error Issued' end. }}''
>
> |time limit, executing monad 0!:101
>
> |the execution time limit was exceeded
>
> |[-3]
>
> The line with the echo never ran. The error code and the error message are
> set and the script is terminated, but it didn't raise the catch. . So, it's
> sort of an error but it's not.
>
> On Tue, Jul 11, 2023 at 11:10 PM Elijah Stone <[email protected]> wrote:
>
> > The verb is returning its newly-created pyx immediately.  There is no
> > problem
> > with creating a pyx which times out; only with opening it.  The _repl_ is
> > trying to open it, in order to display it, and the repl is running into
> an
> > error when the pyx times out.  Compare:
> >
> >     {{try. >r=.5 T. 5 catch. 'Error Issued' end. }}''
> > Error Issued
> >
> > On Tue, 11 Jul 2023, Don Guinn wrote:
> >
> > > A thread timeout issues an error message but does not raise an error.
> Is
> > > this intended or should it raise the error condition?
> > >
> > > 0 T. 0
> > >
> > > 1
> > >
> > > {{try. r=.5 T. 5 catch. 'Error Issued' end. }}''
> > >
> > > |time limit
> > >
> > > 13!:12''
> > >
> > > |time limit
> > >
> > >
> > > JVERSION
> > >
> > > Engine: j9.5.0-beta4/j64avx2/windows
> > >
> > > Build: commercial/2023-07-07T22:38:55/clang-15-0-7/SLEEF=1
> > >
> > > Library: 9.5.2
> > >
> > > Qt IDE: 2.5.1/6.2.4(6.2.4)
> > >
> > > OS Ver: Windows 11 Version 2009 10.0.22631
> > >
> > > Platform: Win 64
> > >
> > > Installer: j9.5 install
> > >
> > > InstallPath: c:/j9.5
> > >
> > > Contact: www.jsoftware.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
> >
> ----------------------------------------------------------------------
> 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