I gave the needed solution earlier. f. doesn't help with explicit verbs that have locale references or side effects.
________________________________ From: roger stokes <[email protected]> To: [email protected] Sent: Sunday, April 23, 2017 1:37 PM Subject: [Jprogramming] how do you pass a verb with a named object local to an adverb? NB. Suppose we have: verbInClass_SomeClass_ =: plus plus_SomeClass_ =: + adv =: / NB. then how about this ? f =: 3 : 0 s =. coname '' NB. save current locale C =. conew 'SomeClass' cocurrent > C v =. verbInClass f. cocurrent > s NB. restore current locale v adv y ) f 1 2 3 6 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
