bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] is there a )copy ⎕fns like ⎕e x is )erase


From: enztec
Subject: Re: [Bug-apl] is there a )copy ⎕fns like ⎕e x is )erase
Date: Fri, 25 Apr 2014 19:08:59 -0600

I delete the email addresses from the replies i don't know if it is even needed 
to do that

I've put together the following based on Jurgen's info about )copy text_file  
(with !# in first line) for editing fns outside of the workspace with vi

one problem? i've found is - if the fns already exists then )copy text_file 
with it in it causes not overwriting but addition addition to it - i guess the 
way it works is the ∇ opens the file and accepts new input...

okay so that is why i use 

⎕ex 'ai'   (run manually - i will put this into the edit fns after i can copy 
the text file in - in the fns
then the following 'edit fns'

#! edit

∇rs←edit fn;fp
 'lib_file_io.so' ⎕FX 'FILE_IO'
⍝ ]XTERM OFF      this was needed at one time run in ws(gives error if run here 
though) during dev of this so i left it but doesn't seem to be needed any more
 fp←'r' FILE_IO[24] 'vi workspaces/',fn,' < `tty` > `tty`'     
 FILE_IO[25] fp
⍝ ⎕ex fn
⍝ ⎕cp fn   need dev of
∇

edit 'a1'
you can put vars and fns in a1

)copy ai


On Sat, 26 Apr 2014 08:38:40 +0800
Elias Mårtenson <lokedhs> wrote:

> There isn't, but implementing it is possible in APL itself. To my knowledge
> this has not been done yet.
> 
> Regards,
> Elias
> On 26 Apr 2014 07:16, <enztec> wrote:
> 
> > I've found ⎕ex that can used in a function since )erase can't so is there
> > a suitable ⎕cp for )copy - i've looked in all the .def files and blown up
> > many a ws trying to find it so any help would be appreciated - also is
> > there a list of all the ⎕ commands - i'd be glad to write up a simple usage
> > file for them
> >
> > btw this is like the 4th post - if it gets no response i won't post any
> > more
> >
> >



reply via email to

[Prev in Thread] Current Thread [Next in Thread]