bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] defn error with ⍝


From: enztec
Subject: Re: [Bug-apl] defn error with ⍝
Date: Sun, 29 Jan 2017 07:59:09 -0700

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+
>
>       ^
> 
> 
> 
> 



reply via email to

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