On Wed, Apr 9, 2008 at 6:19 AM, Richard Donovan <[EMAIL PROTECTED]> wrote:
>   load 'trace'
>   trace 'sp1 10'
>  --------------- 0 Monad ------
>  sp1
>  10
> |value error: sp1
> |   t_z=.    (sp1)(10)
>
> ..and got the above error. Can someone please elucidate?

Trace currently does not support names which are unqualified by
locale.

Ideally, trace should determine the locale of the caller and use that.
Or, since that may not be possible, it should assume the locale
'base' and use that.  However, since it currently does not do so,
you need to either not use names, or qualifiy them properly.

These should work:
   trace '(#~ 2 = [EMAIL PROTECTED]:) @ }. @ i. 10'
   trace 'sp1_base_ 10'

Finally, note that trace just shows the stages of parsing.  It
does not show you how derived verbs work.  For that, you
need to perform experiments with related verbs.  For example:

   (#~ 2 = [EMAIL PROTECTED]:) @ }. @ i. 10
4 6 9
   (;~ 2 = [EMAIL PROTECTED]:) @ }. @ i. 10
+-----------------+-----------------+
|0 0 0 1 0 1 0 0 1|1 2 3 4 5 6 7 8 9|
+-----------------+-----------------+
   (;~ [EMAIL PROTECTED]:) @ }. @ i. 10
+-----------------+-----------------+
|0 1 1 2 1 2 1 3 2|1 2 3 4 5 6 7 8 9|
+-----------------+-----------------+

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to