It has always bugged me that debug signal message is not correct. Now that
the J source is open for suggestions for changes I would like to suggest a
change to the message.

Given:

    f

+-+-+------------------------------------+

|3|:|try.  +y                            |

| | |catch. 'y is not numeric.'(13!:8)123|

| | |end.                                |

+-+-+------------------------------------+

   'First', f 'Last'

|y is not numeric.

|   'y is not numeric.'    (13!:8)123

   'First', + 'Last'

|domain error

|   'First',    +'Last'


Notice that the second error message shows the caller's line in error, not
the line issuing the message. It would be more meaningful if the display
were:

   'First', + 'Last'

|y is not numeric.
|   'First',    f'Last'

Granted, if debug were on then the suspension and message should be as it
is now, but when it is off using the line from the caller makes more sense.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to