--- Raul Miller wrote:
> I re-read the original problem statement and
> noticed that it expected Myverb to contain code
> to get its own names and values.
>
> This will work if debug is turned on:
>
> Myverb=: 3 : 0
>  a=. 'hello'
>  b=. 3 4 2 9
>  c=. 'big';'little';30 2
>  NB. Expression to List names defined locally to this verb
>  NB. (i.e. the list: 'a';'b';'c')
>  0 7 {:: 13!:13 ''
> )
>

Thanks Raul, I will investigate this approach further, but suspect that a 
solution not requiring debug being turned on is what I'm after.

In the meantime I've compiled a master list of "allowable" internal names 
MYNAMES for use within Myverb and check for their existence via
  msk=. 0 <: 4!:0 MYNAMES


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

Reply via email to