Why does this work: ((3!:6)(1!:1)<'utils.ijs') (1!:2) <'utils.ijl'
but not this: ((3!:6) 'utils.ijs') (1!:2) <'utils.ijl' The first one will subsequently load, the second gives me a spelling error on load. Thanks for the quick responses! Blake McBride On Fri, Dec 30, 2011 at 10:41 PM, bill lam <bbill....@gmail.com> wrote: > IIRC, it should be, (you may use any filename/extendsion) > > (<'file.ijl') (1!:2)~ (3!:6) (1!:1) <'file.ijs' > > on loading a script, J interpreter will detect if a script is locked and > decode it automatically while definitions of verbs from that script will be > hidden. > > Птн, 30 Дек 2011, Blake McBride писал(а): >> Greetings, >> >> I see that you can lock scripts with 3!:6. I am trying to figure out >> how to use it: >> >> x =: (3!:6) 'file.ijs' >> x (1!:2) <'newFile' >> >> >> This seams to read in file.ijs, encrypt its contents, and write it out >> to a file named newFile. I can't figure out how to load the locked >> script. >> >> Thanks for the help. >> >> Blake McBride >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm > > -- > regards, > ==================================================== > GPG key 1024D/4434BAB3 2008-08-24 > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm