An experiment:

   chrs=. '-+*'
   $ll=. ;chrs{~?10000$#chrs
10000
   ".ll,'17'
_1
   $ll=. ;chrs{~?50000$#chrs
50000
   ".ll,' i:10j9'
_1 _1 _1 _1 _1 1 1 1 1 1



On 3/21/08, Devon McCormick <[EMAIL PROTECTED]> wrote:
>
> There is at least one production system I'm aware of where they actually
> use lines that are many thousands of characters long.
>
> Which of course begs the question: why would you want to do this?  The
> system to which I referred above values the obscurity so obtained but most
> people would not.
>
> On 3/21/08, Hahn, Harvey <[EMAIL PROTECTED]> wrote:
> >
> > To my question, Björn Helgason responded:
> >
> > |> I can't seem to easily find this in the documentation: what is the
> > |> maximum line length for entering J sentences into the interpreter?
> > |
> >
> > |_
> >
> > But I thought there was a recent discussion in one of the forums
> > somewhat recently that there *was* a physical limitation in terms of the
> > number of characters permitted and that, since J lines can't wrap around
> > (using a wraparound character, as in some other programming languages)**,
> > you sometimes had to split lengthy lines into multiple lines (using
> > assignments in earlier lines that would be incorporated into later
> > lines).  If my understanding was incorrect and there is no line length
> > limit, that's great!  (I'm doing a bit of proselytizing for J with my
> > supervisor, who happens to have been a former programmer and project manager
> > with a well-known insurance company, and I've been preparing some "beginner"
> > teaching material to share with him--and the line-length issue might be a
> > typical question I'd like the answer to.)  Thanks!
> >
> > Harvey
> >
> > ** I'm aware, of course, that sentences can spread over multiple visual
> > lines, particularly when using control structure (and I understand your "_"
> > response).  My question relates to typing single lines of J code.
> >
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
>
>
>
> --
> Devon McCormick, CFA
> ^me^ at acm.
> org is my
> preferred e-mail
>



-- 
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to