From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Zelphir Kaltstahl Newsgroups: gmane.lisp.guile.user Subject: Re: Example of defining and using exceptions Date: Sat, 24 Oct 2020 20:07:54 +0200 Message-ID: <384f358f-f8a8-4011-2760-42bf11b6db94@posteo.de> References: <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="10251"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cc: guile-user To: divoplade Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Oct 24 20:08:15 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 1kWNxf-0002aG-Bl for guile-user@m.gmane-mx.org; Sat, 24 Oct 2020 20:08:15 +0200 Original-Received: from localhost ([::1]:50740 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kWNxe-0001fY-82 for guile-user@m.gmane-mx.org; Sat, 24 Oct 2020 14:08:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43766) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kWNxT-0001fG-1R for guile-user@gnu.org; Sat, 24 Oct 2020 14:08:03 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:54291) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kWNxQ-0004T9-TO for guile-user@gnu.org; Sat, 24 Oct 2020 14:08:02 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 0FA882400FD for ; Sat, 24 Oct 2020 20:07:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1603562876; bh=P8Mj7b3FwOFARi3kTMDIqL9QjBkbNJ4n6h0vgBBQ6Ds=; h=Subject:To:From:Cc:Date:From; b=La5k1XmG8EaeowKKiUUkl3uOCS2yCKBaHw7Qdg62j005RFa6tnACJv0eIWUzOT1St NEDvxs1AOD4cwL6yfPM5OEX24474zApH7QyAfIxQLYwAi/trl5IeZK80b/mGPBS4Yt fzlC0rNLnZb6riJI8Qq9AwblhLGTO3Sc0o9CeXSGbqO5LL2nOV/mEkDobQAYtvZqct QNG0PBp3OINVhOnKpq5rxqyEA2yN3D3Cbf1YJe2FOVK9nMiQ4HrAeGc2KQZe4eq7A2 6TJDNaxlZtcrT3g7LiKx2Nt39zB7/4ODbKxiuvawvjbHnKJ2m3lsZ6wKtAF+dA5Hvh AvQLklNh7qs2w== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CJTbb3zp1z9rxX; Sat, 24 Oct 2020 20:07:55 +0200 (CEST) X-Tagtoolbar-Keys: D20201024200753971 In-Reply-To: <3866ed5d0547922d0752e553b25016b419f379ac.camel@divoplade.fr> Content-Language: en-US Received-SPF: pass client-ip=185.67.36.66; envelope-from=zelphirkaltstahl@posteo.de; helo=mout02.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/24 13:02:10 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -44 X-Spam_score: -4.5 X-Spam_bar: ---- X-Spam_report: (-4.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.107, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:17000 Archived-At: Hi divoplade, although this might be incomplete, I hope this can help you: https://notabug.org/ZelphirKaltstahl/guile-examples/src/master/exception-handling. Best regards, Zelphir On 10/24/20 10:48 AM, divoplade wrote: > 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 > > -- repositories: https://notabug.org/ZelphirKaltstahl