Pascal Jasmin wrote:
> That is very nice solution, and if I had remembered the evoke adverb,
> I might have settled for it.  Raul's solution actually generates a
> verb, and not the string representation of the member.  That is
> preferable because all callees will know how to execute a verb, and
> won't detroy the reference by evoking it.
Actually, the command line is almost misleading here.
   f_t_=:3 :'c+y'
   'f_t_'~
3 : 'c+y'
   g=:'f_t_'~
   g
f_t_
The de-referencing appears to happen, not as a part of
expression evaluation, but as a part of displaying the
result of the expression.
What I thought was a bug in 5!:0 is really this same issue.
In other words, what Oleg is suggesting works rather well.
-- 
Raul


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

Reply via email to