hypothetically, I guess your code browser cannot retrieve the orignal
definition of nouns which has been already evaluated, similarly for verbs
which has been evaluated from adverbs or conjunctions.

I think your code browser is based on a workspace (APL) mindset. J is
based on scripts, so that if your code browser searches collection of
scripts instead of locales (ram), there is a better chance of locating the
definition. For example, use find-in-files or ctag for mygui_myctl_button.

Втр, 07 Июн 2011, Ian Clark писал(а):
> In my endless quest for crystal-clear gui code, I've defined a
> conjunction 'shift'...
> 
> shift=: 2 : 0
> if. 1=".sysmodifiers do. v y else. u y end.
> )
> 
> for use like this:
>    mygui_myctl_button=: foo shift baa
> which works just fine. The button "myctl" does foo unless Shift is
> held down, whereupon it does baa.
> 
> But...
> 
> If I inspect  'mygui_myctl_button' with my code-browser (which uses
> 5!:6), what I don't see is 'foo shift baa'.
> Instead what I see is:
> 
>   5!:6 <'mygui_myctl_button'
> foo (2 : 0) baa
> if. 1=".sysmodifiers do. v y else. u y end.
> )
> 
> The word 'shift' has got lost. Replaced by its definition. None of the
> other (5!:) foreigns see it either.
> 
> Is there a way of retrieving the original definition? --
>    mygui_myctl_button=: foo shift baa
> 
> ...I mean: without giving up on tacit code? I suppose I can always write:
>    mygui_myctl_button=: 3 : '(foo shift baa)y'
> which works, but (tacitly) throws in the towel.
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to