Continuation from General forum,
Subject:
Re: [Jgeneral] Two requests for j
enhancement.
Date:
Wed, 10 Feb 2010 07:39:16 -0800
(10:39 EST)
concerning either a bug or just plain difficulty isolating errors:
Near term recommendation, change or add examples to j documents. The
sample in jforc/error_messages.htm leaves me believing "immediately
before":
The interpreter removes any excess spaces from the
sentence and then adds three spaces before the word whose
execution triggered the error. For example:
2 3 + 0 1 2 * 3 4 5
|length error
| 2 3 +0 1 2*3 4 5
The error occurred during the execution of the + verb.
Context, from Roger Hui
> ...there is probably a bug in the determination of
> where the spaces are put in the error line.
> The following shows that spaces are currently
> already there...
> +/ % blah1&:blah2@:(%&3)@_1 2&p.
> |domain error
> | +/% blah1&:blah2@:(%&3)@_1 2&p.
>
> The problem is that the 3 spaces are between
> the % and blah1, whereas ideally they should
> be put closer to the @ .
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm