Brian, I often use ( ... ) to see what the expression .... produces when
,,, is an assignment, as Roger explained.  In particular,

   ( test=: +: ifC )
+: (1 : 'if. flag1_z_ do. u y else. y end.')
helped me to verify that the verb generated was the intended one; I was
getting confused because items with the same names had been produced in
the z locale and also in the base locale.

PS. You can call me Pepe (Pepe is the nickname of Jose in Spanish).
On Mon, Sep 16, 2013 at 11:27 AM, Brian Schott <[email protected]>wrote:

> Twice now in this thread, parentheses have made a serious difference in
> results. If that difference has been explained I have missed it and would
> appreciate an explanation.
>
> In Pascal's message parens were need around the explicit definition of an
> adverb.
>
> In Jose' s (Pepe's?) message the parens were used as follows and different
> results are produced without parens.
>
>    st=. 7!:2@:] ; 6!:2
>
>    NB. Explicitly...
>
>    controlA_z_ =: 1 : 0
>  flag1_z_ =: 1
>  o=. u y
>  flag1_z_ =: 0
>  o
>  )
>
>    ifC=: 1 : 'if. flag1_z_ do. u y else. y end.'
>
>    ( test=: +: ifC )
>
>
>
> --
> (B=)
> ----------------------------------------------------------------------
> 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