RM=Raul Miller, DB=me

RM>  I frequently use loadd to understand how I might use a system script.
RM>  Does anyone have a more concise approach for this case?

DB>  What about  open 'script'  or  fread (jpath 'script');0 500   ?

Also, a number of system scripts follow the scriptdoc convention.  Therefore 
you may load the script, type a name it defines, cursor over it, and press 
CTRL+F1 to get documentation on the script and its interface.

If you cannot think offhand of specific name defined by the script,  you may 
use this idiom:

           list>{.4!:5&.>i._2[load'script'[4!:5&.>i.2

to get a list.

If you prefer to see the documentation directly in the session, rather than in 
a seperate window, you could use scriptdoc manually:

    require '~system\extras\util\scripdoc.ijs'
    ; 1 2 { parse_jscriptdoc_  getscript_jscriptdoc_ 'script'

though I'd hardly call that 'concise'.

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

Reply via email to