It is often useful to use a simple function to find where definitions were
established and simpler than using other search processes. I suspect a
synonym is lurking somewhere in the system.
source =: 3 : 0
(4!:4<y){4!:3''
)
source 'Public_j_'
+--------------------------------------------+
|C:\Users\Fraser\j701\system\util\scripts.ijs|
+--------------------------------------------+
source 'buildpublic_j_'
+-------------------------------------------+
|C:\Users\Fraser\j701\system\main\stdlib.ijs|
+-------------------------------------------+
The definition of Public was created in _j_ so we need to look there
as well for buildpublic executed in scripts.ijs.
----- Original Message -----
From: "Ric Sherlock" <[email protected]>
To: "General forum" <[email protected]>
Sent: Friday, March 04, 2011 8:36 AM
Subject: Re: [Jgeneral] where is Public_j_ defined?
There is a description of PUBLIC_j_ and how to add to it in J for C
Programmers.
http://www.jsoftware.com/help/jforc/odds_and_ends.htm#_Toc191734549
The spelling (case) does need updating for J7 though. I found this by
using Find in Files to search ~addons/docs/help for PUBLIC_j_
As for where and when it is defined... the definitions are available
in ~system/util/scripts.ijs. The buildpublic verb is defined in
stdlib.ijs and the scripts.ijs script is loaded after booting
stdlib.ijs in ~system/util/boot.ijs
The locations of these in the source scripts are:
http://www.jsoftware.com/trac/base7/browser/trunk/main/config/scripts.ijs
http://www.jsoftware.com/trac/base7/browser/trunk/main/jade/load.ijs
None of that info is really relevant to new users though. The method
described by Henry in JforC (add to Public_j_ by using buildpublic in
your startup.ijs) can be used to extend Public_j_ for your own use.
However, as Devon has noted, extensive use of your own custom aliases
may cause headaches with code portability.
On Fri, Mar 4, 2011 at 5:07 AM, Murray Eisenberg <[email protected]>
wrote:
> for J701, in what script is Public_j_ defined?
>
> I searched but couldn't find its definition. Nor could I find
> documentation about it.
>
> --
> Murray Eisenberg [email protected]
> Mathematics & Statistics Dept.
> Lederle Graduate Research Tower phone 413 549-1020 (H)
> University of Massachusetts 413 545-2859 (W)
> 710 North Pleasant Street fax 413 545-1801
> Amherst, MA 01003-9305
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm