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

Reply via email to