Yes, my stock version of "default", loaded at startup, uses 4!:0 and
is explicit.

I like your use of a conjunction instead of a verb here. Or I may
replace my explicit verb with the new version of "default" I gave, and
have only recently discovered -- provided the latter does not
misbehave on me.

On Sun, Sep 9, 2012 at 3:21 PM, Henry Rich <[email protected]> wrote:
>> default=. ([: *@#@". [) >@{ ] ; [: ". [
>> MODE=. 'MODE' default '-t -4 -a -p -s -f'
>
>
> For one-time initialization I use
>
>    butifundef =: 2 : 'if. 0 > 4!:0 <m do. n else. ".m end.'
>
> and then
>
> MODE =: 'MODE' butifundef '-t -4 -a -p -s -f'
>
> Not quite the same as yours - it works only for global names, and you would
> want 'butifundeforempty' - but it's something I can keep in my toolbox for
> general use.
>
> Henry Rich
>
> ----------------------------------------------------------------------
> 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