I use this (courtesy of Dan):
whereDefined=: 3 : 0
(4!:4{.;:y) {:: (4!:3''),<'Source of definition not found for ','.',~y
)
which has the advantage of handling the error case when the name is not
found.
On Thu, Mar 3, 2011 at 4:02 PM, Fraser Jackson <[email protected]>wrote:
> 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|
> +--------------------------------------------+
> ...
>
--
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm