What I mean, is that I would like to be able to write some J in an external 
file, and then run it from the browser window. I don't currently have a 
specific purpose - I would just like to know for future reference.

On 13 Oct 2011, at 12:11, Raul Miller wrote:

> On Thu, Oct 13, 2011 at 6:46 AM, David Vaughan
> <[email protected]> wrote:
>> Hi, how do I go about writing a script? How does it differ from writing your 
>> code in the browser? For example, say I wanted a script to test the 
>> primality of i.10, how would it look?
> 
> "script" is a potentially ambiguous term.
> 
> One meaning of script is a multi-line definition in J:
> 
> example=: 3 :0
>   smoutput 'this is a script'
>   y
> )
> 
> If this is not what you want, please describe what you are trying to
> achieve and where it goes awry.
> 
> Thanks,
> 
> -- 
> Raul
> ----------------------------------------------------------------------
> 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