How should this behave in a nested load? And, why?

Also, have you considered tactics like:

3 :’throw.’0

?

Thanks,

—
Raul


On Wednesday, May 9, 2018, Ian Clark <[email protected]> wrote:

> Can I propose we agree to alter the stdlib verb: (load) to provide a way to
> stop loading a given script?
>
>    @@NB. stop loading at this line
>
> …certainly does that, but generates an unwelcome "syntax error". This can
> interfere with calling processes.
>
> I propose @@@… (three or more) as the conventional end-of-script marker. A
> line of @@@… offers a clear marker to draw attention to what's happening.
>
> There are a number of reasons why you might want to do this:
>
> ++ to partly-load a script for testing
>
> ++ to omit test code for operational use
>
> ++ to keep notes at the bottom of a script (as I do)
>    0 :0 NB. a block of notes
> or
>    Note 'a block of notes'
> …has the disadvantage of turning off syntax coloring, also resuming
> interpreting code as soon as it hits an isolated right parenthesis.
>
> Ian Clark
> ----------------------------------------------------------------------
> 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