Hi Elias, what is a handler in this context? In the cases of ⎕EC and ⎕EA the behavior is defined so that they unwind the stack when an error has occurred and return some information regarding the error to the caller. APL execution always happens in the lowest )SI entry, so you cannot continue APL execution before the stack is unwound. In theory one could copy some more information (current statement and PC) so that ⎕EM looks a little better, but the behavior as such should remain as is. On the other hand, there is a statement in the APL2 lrm saying (p. 281): ⎕EM and the State Indicator: ⎕EM contains the event message associated with the top line of the state indicator. As the stack is cleared (with → or )RESET n), ⍎EM is reset to the event message associated with the current top line of the state indicator. That is the current GNU APL behavior. In my APL2, ⎕EM is broken when used with ⎕EA: '⍳ì3' ⎕EA '⍳4.5' 1 2 3 ⎕EM DOMAIN ERROR ↑(0??0(0 0))+0??(0 0)0 ^^ /// Jürgen On 04/11/2016 06:41 PM, Elias Mårtenson
wrote:
|
- [Bug-apl] Error handling and IO Elias Mårtenson
- Re: [Bug-apl] Error handling and IO Alexey Veretennikov
- Re: [Bug-apl] Error handling and IO Elias Mårtenson
- Re: [Bug-apl] Error handling and IO Kacper Gutowski
- Re: [Bug-apl] Error handling and IO Elias Mårtenson
- Re: [Bug-apl] Error handling and... Juergen Sauermann
- Re: [Bug-apl] Error handling... Elias Mårtenson
- Re: [Bug-apl] Error hand... Juergen Sauermann
- Re: [Bug-apl] Error hand... Kacper Gutowski
- Re: [Bug-apl] Error hand... Juergen Sauermann
- Re: [Bug-apl] Error hand... Elias Mårtenson
- Re: [Bug-apl] Error hand... Juergen Sauermann
- Re: [Bug-apl] Error handling and IO Juergen Sauermann
- Re: [Bug-apl] Error handling and IO Elias Mårtenson
- Re: [Bug-apl] Error handling and IO Juergen Sauermann
- Re: [Bug-apl] Error handling and IO Elias Mårtenson
- Re: [Bug-apl] Error handling and IO Louis de Forcrand