On Sat, Feb 21, 2009 at 12:50 PM, David Vincent-Jones
<[email protected]> wrote:
> This is interesting:
>
> load 'misc'
> testprompt=: verb define
> l=:prompt 'Enter a number: '
> )
>
> testprompt ''  NB. auto-start in the ijs
>
> |syntax error: prompt
> |   ''    prompt y
>
>
> Prompt appears to fail when an 'auto-start' is used in the ijs but works
> correctly otherwise.

I think the problem has to do with how 1!:1]1 works inside an ijs file.

Note that if you turn on debug (control-K) you do not
get an error, but you also have the prompt left on your
input line and you will have to get rid of it or you will
probably get a syntax error when you try to evaluate it.

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to