NB.  This looks like a bug
   NB.  Briefly, word-formation ;:  takes the scope of NB. to be
   NB.  the end of its argument-string, whereas the Dictionary says
   NB.  to the end of the line.

   NB.  To demonstrate, here is a string

   S =: 0 : 0
z =. y + 1  NB. line 1
z * 2       NB. line 2
)

   NB. It has 2 lines, evidently

   3 : S
+--------------------------+
¦3¦:¦z =. y + 1  NB. line 1¦
¦ ¦ ¦z * 2       NB. line 2¦
+--------------------------+


   NB.  But ...

   ;: S
+---------------------------------------------+
¦z¦=.¦y¦+¦1¦NB. line 1 z * 2       NB. line 2 ¦
+---------------------------------------------+

   NB.  I rest my case
 

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

Reply via email to