From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.lisp.guile.user Subject: where is #? Date: Fri, 31 Jan 2003 20:11:31 -0500 Organization: What did you have in mind? A short, blunt, human pyramid? Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1044062197 14584 80.91.224.249 (1 Feb 2003 01:16:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 1 Feb 2003 01:16:37 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18emGp-0003n6-00 for ; Sat, 01 Feb 2003 02:16:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18emDe-0003MI-07 for guile-user@m.gmane.org; Fri, 31 Jan 2003 20:13:18 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18emCg-0002ZI-00 for guile-user@gnu.org; Fri, 31 Jan 2003 20:12:18 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18emCS-0002I4-00 for guile-user@gnu.org; Fri, 31 Jan 2003 20:12:07 -0500 Original-Received: from multivac.student.cwru.edu ([129.22.96.25] helo=multivac.cwru.edu) by monty-python.gnu.org with smtp (Exim 4.10.13) id 18emCN-0000jF-00 for guile-user@gnu.org; Fri, 31 Jan 2003 20:11:59 -0500 Original-Received: (qmail 26049 invoked by uid 500); 1 Feb 2003 01:11:54 -0000 Original-To: guile-user@gnu.org Mail-Copies-To: nobody Mail-Followup-To: guile-user@gnu.org Original-Lines: 19 User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 (i686-pc-linux-gnu) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: General Guile related discussions List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:1588 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1588 I have a lazy-catch handler that examines the stack to see what procedure threw the exception, and what its arguments are. In the case of the system-error resulting from this: (apply execlp '("doenotexist" "doesnotexist")) the procedure is #, and the arguments are: (# ("doenotexist" "doesnotexist")) When this happens, I want to pretend the procedure was # and the arguments were ("doenotexist" "doesnotexist"). But how can I recognize this situation? This doesn't work: (eq? apply (frame-procedure frame)) because apply is #, not #. Is there some way I can get a reference to # to plug into the comparison? I could deliberately trigger an error and save the reference from the stack, but I'd like to know if there's a cleaner way. paul _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user