From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: divoplade Newsgroups: gmane.lisp.guile.user Subject: Example of defining and using exceptions Date: Sat, 24 Oct 2020 10:48:42 +0200 Message-ID: <3866ed5d0547922d0752e553b25016b419f379ac.camel@divoplade.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20443"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.34.2 To: guile-user Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Oct 24 10:49:12 2020 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kWFEc-0005Bs-Tq for guile-user@m.gmane-mx.org; Sat, 24 Oct 2020 10:49:10 +0200 Original-Received: from localhost ([::1]:44080 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kWFEb-0003Tl-Vi for guile-user@m.gmane-mx.org; Sat, 24 Oct 2020 04:49:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kWFEJ-0003Sh-70 for guile-user@gnu.org; Sat, 24 Oct 2020 04:48:51 -0400 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:18041) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kWFEG-0008Q4-Ol for guile-user@gnu.org; Sat, 24 Oct 2020 04:48:50 -0400 X-Originating-IP: 86.202.110.111 Original-Received: from divoplade.home (lfbn-lyo-1-15-111.w86-202.abo.wanadoo.fr [86.202.110.111]) (Authenticated sender: d@divoplade.fr) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id C15BD240007 for ; Sat, 24 Oct 2020 08:48:42 +0000 (UTC) Received-SPF: pass client-ip=217.70.183.193; envelope-from=d@divoplade.fr; helo=relay1-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/24 04:48:43 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: 1 X-Spam_score: 0.1 X-Spam_bar: / X-Spam_report: (0.1 / 5.0 requ) BAYES_00=-1.9, PDS_TONAME_EQ_TOLOCAL_SHORT=1.999, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:16999 Archived-At: Dear guile hackers, I would like to use the "new" exception style in guile, i.e. define- exception-type and friends. However, I don't understand how compound exceptions work. Do you have an example of using exceptions, showing what compound exceptions can bring? Best regards, divoplade