bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] ⎕ES wrong message


From: Elias Mårtenson
Subject: Re: [Bug-apl] ⎕ES wrong message
Date: Mon, 14 Jul 2014 22:25:31 +0800

Jürgen,

Do you think it would be possible to implement some way of retrieving not only the error code, but also the )MORE text from an exception inside an ⎕EA?

The reason for this is that in my SQL∆WithTransaction call, I need to call the rollback function if there is an error, but then I want to ensure that the original error gets thrown. For SQL this is particularly important because the SQL error report is embedded in the )MORE message.

Regards,
Elias


On 14 July 2014 22:15, Juergen Sauermann <address@hidden> wrote:
Hi Blake,

I believe the ⎕ES related bugs reported recently should be fixed in SVN 372.

This one is not, though. The reason is that fixing it would have considerable performance
impacts (we would need a copy of every defined function argument only for the rare case that ⎕ES
is called),

I also find it somewhat arbitrary to show a non-locked function as locked in this very specific case.

Since ⎕ES is not ISO-standard anyhow, I take the freedom to trade performance for APL2 compatibility.

/// Jürgen




On 07/12/2014 06:34 PM, Blake McBride wrote:
      )CLEAR
CLEAR WS
      ∇test x
[1] x←'xx'
[2] ⎕ES 'SOME ERROR'
[3] ∇
      test '55'
SOME ERROR
      test 'xx'
      ^       ^


⎕ES is showing the modified and not the original argument passed to the function.  IBM APL 2 displays the original argument passed.

Thanks.

Blake




reply via email to

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