bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] This looks wrong


From: Elias Mårtenson
Subject: Re: [Bug-apl] This looks wrong
Date: Tue, 5 Aug 2014 18:26:34 +0800

The issue here seems to be that since test is a nihilic function returning 0, the following call:

      test/0

Is equivalent to the following:

      {0⊣⍵}/0

which returns a single 0, since the /-reduction on a scalar is the value itself.

However, the following:

      (test)/0

is equivalent to:

      0/0

because (test) evaluates before /, resulting in ⍬.

Regards,
Elias



On 5 August 2014 15:39, David B. Lamkins <address@hidden> wrote:
Maybe I've misunderstood some APL2 corner case, but the behavior of the
attached program seems wrong.



reply via email to

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