[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-apl] Error in ⎕EC with each operator
From: |
Kacper Gutowski |
Subject: |
Re: [Bug-apl] Error in ⎕EC with each operator |
Date: |
Sun, 20 Mar 2016 20:46:17 +0100 |
Thanks,
Some debugging output is left while using ⎕EC in r709, but
otherwise it appears to work correctly.
-k
On Sun, Mar 20, 2016 at 6:44 PM, Juergen Sauermann
<address@hidden> wrote:
> Hi Kacper,
>
> thanks, fixed in *SVN 709.*
>
> /// Jürgen
>
>
>
> On 03/20/2016 01:29 AM, Kacper Gutowski wrote:
>>
>> ⎕EC¨ returns the expected 3-element vector only for the first element
>> of ravel list of its argument and plain values for others. If they
>> return no values, it fails; if they err, the interpreter hangs.
>>
>> ]boxing 7
>> {⎕EC⍵}¨'12'
>> ┌→──────────┐ ┌→──────────┐
>> │1 ┌→──┐ ┌─┐│ │1 ┌→──┐ ┌─┐│
>> │ │0 0│ │1││ │ │0 0│ │2││
>> │ └───┘ └─┘│ │ └───┘ └─┘│
>> └∊──────────┘ └∊──────────┘
>> ⎕EC¨'12'
>> ┌→──────────┐ 2
>> │1 ┌→──┐ ┌─┐│
>> │ │0 0│ │1││
>> │ └───┘ └─┘│
>> └∊──────────┘
>>
>> ⎕EC¨'→1'
>> ┌→──────────┐ 1
>> │5 ┌→──┐ ┌⊖┐│
>> │ │0 0│ │0││
>> │ └───┘ └─┘│
>> └∊──────────┘
>> ⎕EC¨'1→'
>> VALUE ERROR
>> →
>> ^
>> immediate_execution() caught APL error 0x30001 (VALUE ERROR)
>>
>> ⎕EC¨'+1'
>> ┌→─────────────────────┐ 1
>> │0 ┌→──┐ ┌→───────────┐│
>> │ │2 2│ ↓SYNTAX ERROR││
>> │ └───┘ │ + ││
>> │ │ ^ ││
>> │ └────────────┘│
>> └∊─────────────────────┘
>> ⎕EC¨'1+'
>>
>> The last expression hangs.
>>
>>
>> -k
>
>