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

2014-04-29 Thread Juergen Sauermann
Hi, I believe there is no reasonable way how a script that uses the ∇-editor can know how a possibly already existing function looks like. In other words, appending in a script is, in practice, always a mistake. I have therefore changed the ∇-editor so that it always clears a function if execute

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

2014-04-26 Thread Kacper Gutowski
On 2014-04-26 21:15:43, Elias Mårtenson wrote: > On 26 April 2014 20:52, Kacper Gutowski wrote: >> ∇mean[0] >>   R←mean B >>   R←(+/B)÷⍴B >> ∇ >> >> This can be )COPY-ied many times without any problems as it enters the >> editor with a name only and then explicitly rewrites header line at [0]. >

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

2014-04-26 Thread Juergen Sauermann
Hi, I have changed the ∇-editor so that it clears the function when run from a script (like )COPY does). Still a bit experimental so please let me know where it fails. SVN 224. I guess Elias can tell you that interfacing to an arbitrary editor (like in )EDITOR) is not entirely trivial and als

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

2014-04-26 Thread Elias Mårtenson
On 26 April 2014 20:52, Kacper Gutowski wrote: > On 2014-04-26 12:08:14, Juergen Sauermann wrote: > > I could make the ∇-editor aware that a )COPY is in progress and that > > functions shall be deleted automatically by the ∇-editor. > > I like a lot that there is now a command that sources anothe

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

2014-04-26 Thread enztec
On Sat, 26 Apr 2014 14:52:49 +0200 Kacper Gutowski wrote: > On 2014-04-26 12:08:14, Juergen Sauermann wrote: > > I could make the ∇-editor aware that a )COPY is in progress and that > > functions shall be deleted automatically by the ∇-editor. > > I like a lot that there is now a command that so

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

2014-04-26 Thread Kacper Gutowski
On 2014-04-26 12:08:14, Juergen Sauermann wrote: > I could make the ∇-editor aware that a )COPY is in progress and that > functions shall be deleted automatically by the ∇-editor. I like a lot that there is now a command that sources another file raw, much like "." in shell or "#include" in cpp.

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

2014-04-26 Thread enztec
Hi Jürgen )copy ws fns with ws created from )save → ws.xml file overwrites the fns which i think is the correct behavior )copy fnswith fns a text file created with !# on first line - (variant of )dump file) overwrites variables but opens the ∇ editor for and appends

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

2014-04-26 Thread Juergen Sauermann
Hi, the )COPY of text files is pretty new, so we have not much experience with it yet. I could make the ∇-editor aware that a )COPY is in progress and that functions shall be deleted automatically by the ∇-editor. /// Jürgen On 04/26/2014 03:08 AM, enz...@gmx.com wrote: I delete the emai

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

2014-04-25 Thread enztec
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 exist

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

2014-04-25 Thread Elias Mårtenson
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, 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