Maybe you are looking for the phrase: noun~ Example use:
ex12=: 1: : 2: ex12 '' 1 ex12~ '' 2 'ex12'~ '' 1 Notice how when ~ gets a verb argument it means something different than when it gets a noun argument. Hypothetically speaking 'ex12'~~'' should give me a 2, do you see why? So, anyways, I suspect that 's_1394_'~ should give you the verb that I think you want. Thanks, -- Raul On Thu, Mar 13, 2014 at 10:44 AM, Pascal Jasmin <[email protected]>wrote: > thank you Don, but I should have been clearer of my needs: > > s__o =: t@:t > > works the same as your version. If it is executed while o is still known > (in scope) then s__o is fine. > > The reason I need s_1394_ is that I don't want to keep a permanent > reference to o. when you call s__o or s_1394_ it sets the locale to o, and > so t@:t can execute in the right context. t@:t without a locale > reference would fail. > > > > ----- Original Message ----- > From: Don Guinn <[email protected]> > To: Programming forum <[email protected]> > Cc: > Sent: Thursday, March 13, 2014 9:54:35 AM > Subject: Re: [Jprogramming] alternate locale calling convention > > The assignment needs to be done in the locale o. > > do__o 's=:t@:t' > > > s__o > > ┌─┬──┬─┐ > > │t│@:│t│ > > └─┴──┴─┘ > > s__o 3j4 > > 12j16 > > > On Thu, Mar 13, 2014 at 6:26 AM, Pascal Jasmin <[email protected] > >wrote: > > > this seems to work ok so far, for embedding into another expression: > > > > 's_1394_'~@:+: > > > > > > ----- Original Message ----- > > From: Pascal Jasmin <[email protected]> > > To: "[email protected]" <[email protected]> > > Cc: > > Sent: Thursday, March 13, 2014 1:55:12 AM > > Subject: [Jprogramming] alternate locale calling convention > > > > This is turning out to be surprisingly difficult: > > > > ] o=. 18!:3 '' > > ┌────┐ > > │1394│ NB. numbered locale > > └────┘ > > t__o =: +: > > s__o =: t@:t > > > > I would like to refer to the verb s_1394_ without it being converted to > t@:t > > (because calling that expression outside of locale context is > meaningless) > > > > the best I can do is : (skipping code to produce string version) > > > > 3 : ('s_1394_ y';':';'x s_1394_ y') > > > > ---------------------------------------------------------------------- > > 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 > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
