bug-apl
[Top][All Lists]
Advanced

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

Re: canceling ∇-edit mode


From: Otto Diesenbacher-Reinmüller
Subject: Re: canceling ∇-edit mode
Date: Wed, 8 Apr 2020 17:04:53 +0200

Hi Jürgen,

many thanks for that super-quick fix!

I can confirm, works fine.

Just a minor bug remains: calling [→] for a new function results in an
exception, see below.

br & many thanks - Otto

)clear
CLEAR WS
      )fns
      ∇test
[1] ⍝ a teste...
[2] [→]

==============================================================================
Assertion failed: fun
in Function:      execute_escape
in file:          Nabla.cc:885

Call stack:

----------------------------------------
-- Stack trace at Nabla.cc:885
----------------------------------------
0xA @@@@
0xA  @@@@
0xA   @@@@
0xA    @@@@
0xA     @@@@
0xA      @@@@
0xA       @@@@
0xA        @@@@
========================================

SI stack:


==============================================================================
*** immediate_execution() caught other exception ***

From: Dr . Jürgen Sauermann
Subject: Re: canceling ∇-edit mode
Date: Wed, 8 Apr 2020 13:38:24 +0200

Hi Otto,

thanks for reporting this. I guess I simply missed that case.

Fxed in *SVN 1254*.

Best Regards,
Jürgen Sauermann

On Wed, Apr 8, 2020 at 12:13 PM Otto Diesenbacher-Reinmüller <address@hidden> wrote:
Hi APLers,

first let me thank, for that wonderful piece of software!

Using the ∇-editor I found some inconsistencies, perhaps a bug or am I
using ∇ wrong? Reference APL2 docu and Nabla.cc:
"  // we expect one of the following:
   //
   // [⎕] [n⎕] [⎕m] [n⎕m] [⎕n-m]                    (show)
   //     [n∆] [∆m] [n∆m] [∆n-m] [∆n1 n2 ...]       (delete)
   // [→]                                           (escape)
   // [n]                                           (goto)
   // text                                          (override text)"


I create a new function:
      ∇z←a plus b
[1] z←a+b
[2] ∇

afterwards I start changing the function, but want to cancel the
changes. Entering [→] won't let me leave the ∇-mode. I have to end it
with '∇'? BUT then, only the header remains - whole function body is
no longer available:

      ∇plus
[2] [⎕]
    ∇
[0]   z←a plus b
[1]   z←a+b
    ∇
[2] [0.5] ⍝ a comment
[0.6] [→]                    ⍝ I am not leaving the ∇-mode?
[0.6] ∇                      ⍝ I have to leave with ∇?
      ∇plus[⎕]∇
    ∇
[0]   z←a plus b
    ∇
      ⎕CR 'plus'
┌→─────────┐
↓z←a plus b│
└──────────┘

Is this a bug, or is there another way to leave the ∇-mode without
saving last changes?

br & many thanks - Otto


reply via email to

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