Re: [PATCH] Prevent 'error' from being tail-called, for better diagnostics

2012-01-30 Thread Mark H Weaver
Andy Wingo writes: > On Mon 30 Jan 2012 07:39, Mark H Weaver writes: > >> One idea is to change 'error' into a macro, and use tricks similar to >> what 'load' does, to cleverly makes it look like a procedure. > > Unfortunately this is an incompatible change. Existing compiled files > which refe

Re: [PATCH] Prevent 'error' from being tail-called, for better diagnostics

2012-01-30 Thread Andy Wingo
On Mon 30 Jan 2012 07:39, Mark H Weaver writes: > When 'error' is called, the user should _automatically_ be told the > exact source location where it was called, and the procedure that called > it should be present in the backtrace. Therefore, we should somehow > prevent it from being tail-call

[PATCH] Prevent 'error' from being tail-called, for better diagnostics

2012-01-29 Thread Mark H Weaver
at do you think? Mark >From 7914328a91d15639399f7c2926da4ae2fd793e84 Mon Sep 17 00:00:00 2001 From: Mark H Weaver Date: Mon, 30 Jan 2012 01:33:08 -0500 Subject: [PATCH] Prevent 'error' from being tail-called, for better diagnostics * module/ice-9/boot-9.scm (error): Rename