I've noticed too that NB. seems to gobble the new line (or line feed, I forget which). If there is no NB. on the end of the line the new line acts as a token and is put in a box by itself.
On Thu, May 14, 2009 at 11:36 AM, Roger Stokes < [email protected]> wrote: > > > 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 > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
