|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] defn error with ⍝ |
Date: | Sun, 29 Jan 2017 16:56:20 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
Hi, the original post was referring to the behavior of IBM APL2. I just re-checked it, and IBM APL2 closes an open function if you enter ∇, even if the ∇ belongs to a comment. In a way ∇ has a special meaning for the editor, just like ESC in vi. /// Jürgen On 01/29/2017 03:59 PM, address@hidden
wrote:
Hi Juergen, I looked at the http://lists.gnu.org/archive/html/bug-apl/2014-07/msg00249.html and that is what i am 'using' as a programming technique - that ∇ is in a uncommented line my 2nd ∇ is in a comment and should be ignored this is more how i use it in code i would uncomment the 2nd line ⍝ '⊂⌸⋸' ∇ and comment the 3rd line 'aaa' ∇ this is more like how i would code ∇im ⍝ '⊂⌸⋸' ∇ 'aaa' ∇ ∇im '⊂⌸⋸' ∇ ⍝ 'aaa' ∇ On Sun, 29 Jan 2017 14:08:06 +0100 Juergen Sauermann <address@hidden> wrote:Hi, which one? The first ∇ opens function im The second ∇ is at the end of the comment and closes the function and <---- it is at the end of a comment and should not close the function brings you back to immediate execution. The third ∇ is the one below the comment line. It opens a function without a name, which raised the DEFN error, just like: ∇ DEFN ERROR+ ∇ ^ )MORE Bad function header In earlier versions of GNU APL the ∇ in the comment would belong to the function and be ignored by the ∇-editor. But then there was a request in bug-apl that a ∇ in a line of an open function should not be parsed but instead close the function, which it now does. See http://lists.gnu.org/archive/html/bug-apl/2014-07/msg00249.html /// Jürgen On 01/29/2017 02:20 AM, address@hidden wrote: could someone give me a heads up why the ⍝ doesn't cover the ∇ in the line? #! im ∇im ⍝ '⊂⌸⋸' ∇ ∇ )copy im DUMPED 2017-01-28 18:17:02 (GMT-7) DEFN ERROR+ ∇ ^ |
[Prev in Thread] | Current Thread | [Next in Thread] |