This would mean that -- every time this mechanism is used -- we need to take an extra step to clear it afterwards, so it doesn't propagate into other contexts?
Thanks, -- Raul On Fri, Aug 23, 2019 at 4:03 PM Henry Rich <[email protected]> wrote: > > I am going to add a new foreign that sets the script string. You can use > that before calling 0!:n . > > Henry Rich > > On 8/23/2019 1:54 PM, 'Pascal Jasmin' via Programming wrote: > > Thank you so much, Henry. Very important to me. > > On Friday, August 23, 2019, 01:35:35 p.m. EDT, Henry Rich > > <[email protected]> wrote: > > > > (so did Martin, I should say). I'll get on it. > > > > hhr > > > > On 8/23/2019 1:32 PM, 'Pascal Jasmin' via Programming wrote: > >> The trick doesn't work when y is a string (of code) instead of a file. > >> So any processing of a file that creates J code (that will be the actual > >> loading) must write a new file only because if the code includes that > >> trick, it only works for file loads. The file approach runs into problems > >> with multi process code such as that in zmq and jd add ons. > >> The change (to add x parameter) is specifically required so that the trick > >> you describe works on string y, where the trick would return the x > >> parameter to 0!:n > >> On Thursday, August 22, 2019, 09:48:46 p.m. EDT, Henry Rich > >> <[email protected]> wrote: > >> > >> There is a request outstanding for a change to 0!:n, giving an optional > >> left argument. The justification is to allow a verb to find the name of > >> the script it was loaded in. I don't see why the current 4!:3 and 4!:4 > >> aren't adequate. Can someone explain why > >> > >> (4!:3'') {~ 4!:4 <'name_of_my_verb' > >> > >> doesn't suffice? > >> > >> The request is at > >> https://code.jsoftware.com/wiki/System/Interpreter/Requests#Add_optional_left_arg_to_0.21:n > >> > >> Henry Rich > >> > >> --- > >> This email has been checked for viruses by AVG. > >> https://www.avg.com > >> > >> ---------------------------------------------------------------------- > >> 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 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
