OK, fine with me.

R.E. Boss


-----Original Message-----
From: Programming <programming-boun...@forums.jsoftware.com> On Behalf Of Henry 
Rich
Sent: dinsdag 14 september 2021 20:09
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] nested direct definitions

5!:2 runs all multiline entities into a single line.  5!:5 does not.

I'm not sure why this is the way it is, but the debugger expects it & so I am 
loath to change it.  I like Raul's idea, to use 5!:5 for your display format.

Henry Rich

On 9/14/2021 6:24 AM, R.E. Boss wrote:
> I have this (nonsense) script
>
>     foo=: {{ z=.x+3*y
>   z=.{{ (<}:y),~(2{."1 x);(2}."1 x) ([* ({~<:)"1~) 1 _1{~2|}:y  NB. 
> bla bla (t2=. 0 1 2 1 2 1 0{~ (4|x0{~<:|{.y0)+3*0>{.y0){ +/"2((2 0 *]),:]) 
> y0{UV
>    }}
> z
> }}
>
> which displays as
>
>     foo
> +-+-+--------------------------------------------------------------------------------------------------------------------------------------------------------+
> |4|:|z=.x+3*y                                                                 
>                                                                               
>  |
> | | | z=.{{ (<}:y),~(2{."1 x);(2}."1 x) ([* ({~<:)"1~) 1 _1{~2|}:y  NB. bla 
> bla (t2=. 0 1 2 1 2 1 0{~ (4|x0{~<:|{.y0)+3*0>{.y0){ +/"2((2 0 *]),:]) y0{UV  
> }} |
> | | |z                                                                        
>                                                                               
>  |
> +-+-+--------------------------------------------------------------------------------------------------------------------------------------------------------+
>
> and becomes unreadable, at least for me.
>
> Is this meant to be like this, that a comment in a nested definition  
> concentrates the rest in one line?
>
>
> R.E. Boss
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm


--
This email has been checked for viruses by AVG.
https://www.avg.com

----------------------------------------------------------------------
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