Hi Fraser,

I checked there is already a simple cover verb for glcmds which
filters _ and __ and coerce real to integer. There might be some cases
not yet handled eg NaN that you just mentioned.  Perhaps it can be
improved by re-checking if the type of final result is integer or not.
 This was done inside the gl2 addon.


On Thu, Jun 5, 2014 at 3:09 PM, Fraser Jackson
<[email protected]> wrote:
> Thanks Ric and Bill.
>
> Another script which may most times give an error which cannot be recovered
> is
> (oops - I cannot copy it from the session since it is displayed but not
> responding  ..)
>
> a =. i.10
> b =. ?10#10
> plot (b%a) ;a
>
> I agree that the user should always try to ensure that the argument is in
> the domain,
> but sometimes buried in the code there will arise a  problem like a Nan and
> we should have important code like the plot commands able to handle them. In
> J602 I do not remember an occasion where the plot commands failed to deliver
> some error message.  I hope we can reach a similar situation for J802.
>
> I completely understand that 'the plot addon is complex and difficult to
> maintain'.   We are deeply indebted to those who have developed and
> maintained it.  If it were much more transparent I would as a user try to
> track exactly what is happening, but with the deep interaction of the plot
> locale with all the glcmds it is much better to try and identify simple
> conditions where a problem arises so those with appropriate skills can
> address it when they are able.
>
> Thanks for all those who have made J802 what it is becoming - a excellent
> working environment for research analyses and project development.
>
> Fraser
>
>
>
>
> ----- Original Message ----- From: "bill lam" <[email protected]>
> To: <[email protected]>
> Sent: Thursday, June 05, 2014 2:47 PM
> Subject: Re: [Jbeta] plot domain error aborts J
>
>
>
>> Thank Ric,
>>
>> It is a domain error in glcmds under J602, perhaps glcmds in
>> j602 do some validatons but glcmds in j8/jqt didn't.
>>
>> I think it should be OK for glcmds to assume data are valid.  It
>> would be the responsibility of the caller (plot addon) to ensure
>> data validity.
>>
>> the plot addon is complex and difficult to maintain, I would
>> like to staying away from it.
>>
>> lЧт, 05 июн 2014, Ric Tikkanz написал(а):
>>>
>>> I get the same behaviour with:
>>>
>>> Engine: j701/2011-01-10/11:25
>>>
>>> Library: 8.01.028
>>>
>>> Qt IDE: 1.0.27/4.8.5
>>>
>>> Platform: Win 64
>>>
>>> Installer: j801 install
>>>
>>> InstallPath: c:/program files/j64-801
>>>
>>>
>>> On Thu, Jun 5, 2014 at 2:11 PM, bill lam <[email protected]> wrote:
>>>
>>> > Dit it work in j801?
>>> >
>>> > Чт, 05 июн 2014, Fraser Jackson написал(а):
>>> > >  JVERSION
>>> > > Engine: j701/2011-01-10/11:25
>>> > > Library: 8.02.06
>>> > > Qt IDE: 1.1.2/5.3.0
>>> > > Platform: Win 32
>>> > > Installer: J802 install
>>> > > InstallPath: c:/users/fraser/j802
>>> > >
>>> > >
>>> > > NB.  some errors in plot calls abort J802
>>> > >
>>> > >   load 'plot'
>>> > >   a =: ? 2 3 4 $ 0
>>> > >   b =: ? 2 3 4 $ 0
>>> > >      plot a ; b   NB.  should give domain error in one of the > >
>>> > > functions
>>> > > called as in J 602
>>> > > NB.  but J802 becomes unresponsive and must be closed
>>> > >
>>> > > ----------------------------------------------------------------------
>>> > > For information about J forums see > >
>>> > > http://www.jsoftware.com/forums.htm
>>> >
>>> > --
>>> > regards,
>>> > ====================================================
>>> > GPG key 1024D/4434BAB3 2008-08-24
>>> > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
>>> > gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
>>> > ----------------------------------------------------------------------
>>> > For information about J forums see http://www.jsoftware.com/forums.htm
>>> >
>>> ----------------------------------------------------------------------
>>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
>>
>> --
>> regards,
>> ====================================================
>> GPG key 1024D/4434BAB3 2008-08-24
>> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
>> gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
>> ----------------------------------------------------------------------
>> 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