Terrence Brannon wrote:
> It seems that boxed args must be unboxed before use, wasting time.
> Further, since a J program can only have strings in ARGV, what is the
> point?
(1) The point is to have strings of different lengths. Remember that
all arrays must be orthogonal. An open, 2-dim character array with
one argument per line would have to be blank padded, a lossy
transformation.
(2) Also: not _all_ arguments need to be unboxed. Arguments referring
to file names for example have to be passed to 1!:x et al. in boxed
form anyway.
(3) If your parameter list has a rigid format, multiple assignment
is the easiest way to extract the ARGV components:
'prog filename count' =. ARGV
Martin
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm