Re: [Bug-apl] Feature request: UNWIND-PROTECT-like feature

2014-04-21 Thread David Lamkins
You may be able to construct that in APL. I'm on my phone now, so this is from memory and may be wrong: take a look at quad-EM (and maybe quad-EMX, although that may well be a Dyalog-ism); you should be able to capture the error information and rethrow using quad-ES. On Apr 21, 2014 8:09 PM, "Elia

Re: [Bug-apl] Feature request: UNWIND-PROTECT-like feature

2014-04-21 Thread David B. Lamkins
On Mon, 2014-04-21 at 17:34 +0800, Elias MÃ¥rtenson wrote: > We need a feature similar to the Common Lisp form UNWIND-PROTECT, or > in Java: try/finally. > > > For those who don't know, this form allows you to execute code after > some code has been run, regardless of how the latter exits (return

[Bug-apl] Feature request: UNWIND-PROTECT-like feature

2014-04-21 Thread Elias MÃ¥rtenson
We need a feature similar to the Common Lisp form UNWIND-PROTECT, or in Java: try/finally. For those who don't know, this form allows you to execute code after some code has been run, regardless of how the latter exits (return normally, exited with error, etc...) What I envision is something like