Re: [Bug-apl] 'include' directive?

2017-02-05 Thread Alexey Veretennikov
Yes this is what I tried to do with the copy, see messages below. enz...@gmx.com writes: > solved - )copy does it - but you can't have )off in the file ;) > > > On Sat, 4 Feb 2017 16:08:06 -0700 > enz...@gmx.com wrote: > >> Is there some kind of 'include' directive enabled for scripting or an

Re: [Bug-apl] 'include' directive?

2017-02-05 Thread Juergen Sauermann
Hi, I was thinking of piping the input stream to apl through either m4 or cpp. Not so much for #include (which would come as a side effect) but because of macros. I am a big fan of macros. But I am not there yet. /// Jürgen

Re: [Bug-apl] location of cursor on new apl session

2017-02-05 Thread Juergen Sauermann
On 02/05/2017 12:03 AM, enz...@gmx.com wrote: very complicated messing with LineIndex.cc with allocated_height - 1 and in LineIndex.hh messing with set_cursor got it to stay at the top but still input scrolled up one line and input stayed on 'same line' - instead of a true ^M

Re: [Bug-apl] location of cursor on new apl session

2017-02-05 Thread enztec
is this apl2 (which was ibm's second failed attempt to push apl) or gnuapl? On Sun, 5 Feb 2017 11:44:23 +0100 Juergen Sauermann wrote: > > > On 02/05/2017 12:03 AM, enz...@gmx.com wrote: > > very complicated messing with LineIndex.cc with allocated_height - 1 > > and in LineIndex.hh

Re: [Bug-apl] 'include' directive?

2017-02-05 Thread enztec
i don't see 'messages below' but using a file chmod 644called ss2 with shebang#! ss2 (shebang created from )dump) but is a real executable shebang if chmod 700 ss2 if you have executable statements in ss2 they get executed at location of ⍎')copy ss2' (this will show )dump

Re: [Bug-apl] location of cursor on new apl session

2017-02-05 Thread Elias Mårtenson
I think the key thing to remember here is that the final ∇ isn't part of the program code, but rather is something analogous to an EOF marker. >From that perspective, this makes sense. Regards, Elias On 5 Feb 2017 18:44, "Juergen Sauermann" wrote: On 02/05/2017 12:03 AM, enz...@gmx.com wrote

Re: [Bug-apl] location of cursor on new apl session

2017-02-05 Thread Juergen Sauermann
Hi, apl2. I have attached a screenshot of an APL2 session where I typed ∇ on Line 2 of function FOO after  a comment. After that I display FOO. According to your theory, ∇ should now be part of the comment but it is not. Instead. as you c

[Bug-apl] location of cursor on new apl session

2017-02-05 Thread Louis de Forcrand
Wrong email address. > From: Louis de Forcrand > Date: 5 February 2017 at 18:32:35 GMT+1 > To: enz...@gmx.com > Subject: Re: [Bug-apl] location of cursor on new apl session > > Heck, it's open-source, if you don't like it the way it is try changing it > yourself. > > Louis > >> On 05 Feb 2017

Re: [Bug-apl] location of cursor on new apl session

2017-02-05 Thread Juergen Sauermann
Hi again, I just stumbled upon the --rawCIN command line option of GNU APL. If you use it, then GNU APL will not emit any cursor positioning sequences. It also does not echo the input, but that can be fixed with proper terminal setting,

Re: [Bug-apl] location of cursor on new apl session

2017-02-05 Thread Blake McBride
On Sat, Feb 4, 2017 at 5:03 PM, wrote: > > ... > > now to convince the stubborn gnuapl dev that a 'comment is a comment' in a > fns you don't want wikipedia to say ... a comment is a comment in > EVERY COMPUTER PROGRAMMING lang except gnuapl ... do you ? ;) > Wow. I hadn't been following

Re: [Bug-apl] location of cursor on new apl session

2017-02-05 Thread Alexey Veretennikov
Hi, It seems Dyalog APL has the same behavior, so it is not APL2 only, see screenshot attached. Juergen Sauermann writes: > Hi, > > apl2. I have attached a screenshot of an APL2 session where I typed ∇ on Line > 2 of function FOO after a > comment. > After that I display FOO. > > According t

Re: [Bug-apl] location of cursor on new apl session

2017-02-05 Thread Blake McBride
What do you know? APL is APL! On Sun, Feb 5, 2017 at 12:53 PM, Alexey Veretennikov < alexey.veretenni...@gmail.com> wrote: > Hi, > > It seems Dyalog APL has the same behavior, so it is not APL2 only, see > screenshot attached. > > > > > Juergen Sauermann writes: > > > Hi, > > > > apl2. I have a

Re: [Bug-apl] location of cursor on new apl session

2017-02-05 Thread enztec
∇Hi wow /usr/local/bin/apl )host stty echo icanon is the magic !!! thanks pure scripting also works but with no 'workspace benefit' the --rawCIN command line option is listed in the newest apl.html that comes with sources and on the site but is not inman apl (apl.1) ⍝ thanks very

Re: [Bug-apl] strange behavior of --

2017-02-05 Thread Alexey Veretennikov
Hi, It looks like other interpreters (not APL, but other languages: perl, python, awk etc) have some other behavior concerning command line arguments. With python I can just specify #!/usr/bin/python and the script will pick-up all arguments an ordinary program, regardless of the platform; while

Re: [Bug-apl] strange behavior of --

2017-02-05 Thread Alexey Veretennikov
Ok, as I understand I need to take a look at UserPreferences::expand_argv and UserPreferences::is_APL_script correct? Juergen Sauermann writes: > Hi, > > yes, most of this trouble is caused by how execve() works, which is quite > different > on different platforms. And it happens before apl is

[Bug-apl] naming convention

2017-02-05 Thread enztec
what are these called ⊃ disclose ⊂ enclose ⊣ ? ⊢? ∩ ? ∪ ? ⍝ lamp? ⊤ encode ⊥ decode

Re: [Bug-apl] naming convention

2017-02-05 Thread Alexey Veretennikov
enz...@gmx.com writes: > what are these called > > ⊃ disclose Right Shoe > ⊂ enclose Left Shoe > > ⊣ ? Left Tack > ⊢? Right Tack > > ∩ ? Up Shoe > ∪ ? Down Shoe > > ⍝ lamp? Lamp > > ⊤ encode Down Tack > ⊥ decode Up Tack > -- Br, /Alexey

Re: [Bug-apl] strange behavior of --

2017-02-05 Thread enztec
do you have an example of what you mean by 'used in this way'? with the recent '--' change - the apl scripting seems to behave the same as would be done with python/php On Sun, 05 Feb 2017 21:08:40 +0100 Alexey Veretennikov wrote: > Hi, > > It looks like other interpreters (not APL, but

[Bug-apl] scripting )copy question

2017-02-05 Thread enztec
#!/usr/local/bin/apl --script -- 1 ⍝⍎')copy SQL.apl' ⍝ for sqlite fns ∇sqlite 2 ⍎')copy SQL.apl' ⍝ for sqlite fns ⍎')fns' ⍝ doesn't show SQL∆Connect db←'sqlite' SQL∆Connect '/sqlite/tutorial.db' ⍝db←'sqlite' ⎕sql[1] '/sqlite/tutorial.db' ∇ )fns⍝ shows SQL∆Connect )off the

Re: [Bug-apl] scripting )copy question

2017-02-05 Thread Elias Mårtenson
It works for me: Network listener started. Connection information: mode:tcp addr:40267 * )fns* * )copy 5 SQL* DUMPED 2017-02-06 11:25:33 (GMT+8) * )fns* SQL∆Begin SQL∆Columns SQL∆Commit SQL∆Connect SQL∆Disconnect SQL∆ExecSQL∆RollbackSQL∆Select SQL∆Tables