ok, error is in a
loc_z_ =: (,&'_'@[ ,&'_'@, ":@>@])"1 0 boxopen locs_z_ =: 1 : 'm loc 18 !: 5 ''''' f=:3 :0 C=.conew'base' c__C=:1 z=. 't' locs__C~ a 0codestroy__C'' z ) ________________________________ From: Xiao-Yong Jin <[email protected]> To: "[email protected]" <[email protected]> Sent: Friday, April 21, 2017 9:32 PM Subject: Re: [Jprogramming] how do you pass a verb with a named object local to an adverb? NB.BEGIN file 't' c=:0 t=:3 :0 c + y ) a=:1 :0 echo u`'' u y ) f=:3 :0 C=.conew'base' c__C=:1 z=.t__C a 0 codestroy__C'' z ) NB.END file 't' NB.BEGIN jconsole session load't' f'' ┌────┐ │t__C│ └────┘ |value error: C | u y NB.END jconsole session > On Apr 21, 2017, at 9:22 PM, 'Pascal Jasmin' via Programming > <[email protected]> wrote: > > > > I don't expect there to be any complaint different than if you ran these > lines in console. > > By the time adv sees its parameters, C has been defined, and so no error, > unless there was a recent optimization that breaks this. > > > > ________________________________ > From: Xiao-Yong Jin <[email protected]> > To: "[email protected]" <[email protected]> > Sent: Friday, April 21, 2017 8:37 PM > Subject: [Jprogramming] how do you pass a verb with a named object local to > an adverb? > > > > In an explicit definition of a verb, if I have, for example, > > f=:3 :0 > > C=.conew'SomeClass' > > verbInClass__C adv y > > ) > > > The anonymous verb created by 'verbInClass__C adv' is going to complain about > the unknown C. > > How do you actually pass the 'verbInClass__C' in this case? > > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
