From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Vong Newsgroups: gmane.lisp.guile.user Subject: Re: Request for assistance: (assertion-violation) unbound variable Date: Sun, 11 Jun 2017 14:23:09 +0800 Message-ID: <87r2yr9h6a.fsf@gmail.com> References: <1496917737.4841.1.camel@fastmail.uk> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1497162225 11753 195.159.176.226 (11 Jun 2017 06:23:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Jun 2017 06:23:45 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: Guile Mailing List To: Peter Silcock Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Jun 11 08:23:41 2017 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJwHl-0002r0-EE for guile-user@m.gmane.org; Sun, 11 Jun 2017 08:23:41 +0200 Original-Received: from localhost ([::1]:32980 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJwHq-0000It-TD for guile-user@m.gmane.org; Sun, 11 Jun 2017 02:23:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42806) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJwHU-0000Ic-FL for guile-user@gnu.org; Sun, 11 Jun 2017 02:23:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dJwHR-0003tP-4W for guile-user@gnu.org; Sun, 11 Jun 2017 02:23:24 -0400 Original-Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]:36306) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dJwHQ-0003sq-TZ for guile-user@gnu.org; Sun, 11 Jun 2017 02:23:21 -0400 Original-Received: by mail-pf0-x244.google.com with SMTP id y7so13053915pfd.3 for ; Sat, 10 Jun 2017 23:23:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version; bh=2nAqQEGLTlll515ytaNB4R0IEWuz52X0elTg+sSDiXk=; b=oqOtNNuEy9p+EyR0zNbjEIQPWX3VINtUxKciFQ2BFF0u2KuOyCU6+RMZCMjNchUcDH lmBB1O3RXbODW1sjIuCmcqfPWneWpXjASHfc7iQtdHp9Zy26JiCLBgWNF2sZc5Z3q0WM n5B23G9mcVYf5AqsGB2Y5CgNfPRVBkxNJL6hfFfSqJA0rMtNY5TVFg80fZPA9Lf6PjN+ Sb4NDtOTHJ0fdrKN5yR+MmhBCRnf4JLvS2NOnduoI8vkvPBijQ6Vjri1iXivh+mEs4gc imW0D8xXZ0puSATnT9VpIEbjw21N9pIZw05oWgztpEhF4fS2KeueeCVM+VImqpoGGt54 g3rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version; bh=2nAqQEGLTlll515ytaNB4R0IEWuz52X0elTg+sSDiXk=; b=aJnF3vK9QF/8eMW1Vo3Te5DhllF1RtggVaf3WKe7UmWBON5A80MOVmxBpfhq9klAnF pif8UHyRfMEaLWjlZx5Idr8Vj3OboF0UN6lQaTKJcTTecZqHXstF7jnG+2mF8t+0M1/p AiZijVOgwQBs7opGorli0ExjjaOQUv49ugmtFjCVnXMpXfZ3FMo/Z3vtnQI6JOaF/eNd 12pf/IR49tEGTUgnPKXwexIpQPyW+F+pt2IQUtqGPG+rFYQMPzWBaN1xIJ5Foemk7khx 4b2sCtQ0jPZpHO8u3p7/daMs9kQaRyM6uGJt3I8BgDMP2pz2tCLRaoAvqP2Rwsr8EqMK OHSg== X-Gm-Message-State: AODbwcAR8GN4GUpNtuJ4zEv8RxDIa4CD73wVlWjmKyo+5ZsRDBrL9Xkk 0ZX1o1H2qK3UNw== X-Received: by 10.84.167.74 with SMTP id j10mr49177265plg.144.1497162198564; Sat, 10 Jun 2017 23:23:18 -0700 (PDT) Original-Received: from debian (n058152178225.netvigator.com. [58.152.178.225]) by smtp.gmail.com with ESMTPSA id k9sm16248886pgn.55.2017.06.10.23.23.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 10 Jun 2017 23:23:17 -0700 (PDT) In-Reply-To: <1496917737.4841.1.camel@fastmail.uk> (Peter Silcock's message of "Thu, 08 Jun 2017 11:28:57 +0100") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::244 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:13801 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Peter Silcock writes: > As a newcomer to Guile/Scheme, I am working my way through some > exercises which require the use of an (assertion-violation) procedure > to trap an error condition, specifically: > > (if (empty? queue) > (assertion-violation 'getq "Queue is empty"))) > > When I run the code (which I have checked with the answer given in the > book), I am presented with the following output:=C2=A0"In procedure modul= e- > lookup: Unbound variable: assertion-violation." > > So far I have found no pointers to a solution=C2=A0in the reference manual > or on the web. My assumption is that I am missing a module or library > from somewhere, but don't know how to set about identifying it. Chicken > Scheme also responds with the same error. > > Guile version 2.0.13 on Debian Stretch 4.9.0-3-amd64. > > Any suggestions please? Thanks in anticipation, > > Peter Silcock I think you have to import the r6rs base library: (use-modules (rnrs base)) Welcome to guile! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEdZDkzSn0Cycogr9IxYq4eRf1Ea4FAlk84c0ACgkQxYq4eRf1 Ea70Ng/6AhdiH7OU8+YWB6CG9uyMVgFnI9KVXL+rNGmhqWhj5U6+XBnE5s2izshZ E8wnSBi1gkZNO4Vugjma5ZLj26wprYiEOjz2HUsEXtTCuPP0Vj6di9GBiALEBq7i LGohhoWMfm9K6fLXkl1evoPEBDkBSEPDv9H4Tb6Cpv9oBOWkuPJBdipC7F6LcHDE 5QsYp+WkJCV1Iz5qWNaZMOhr5c/uy5+0/XIcWPecZGna34HtWyO3pTMthNXxNFqM /hx8OsgxwwTsxpqXZXb8bwY+kdf5a/vMXO30vT/m/KvrAxmTyqcO6x/oGCnm1sqr v0EiBN4bra9hPBmNZknolQkqQkvRd/zV8Q4NJdr/rL4ef4exrBE/MurAcEizO2/4 ccAT9EH5DYqzEWJe5rS1kLGfjfb1UCy81r+YH3jzmP/oA+CagIZ0O+WRPK1utj54 cFaCNqTV3KBwvT3mAjA9Zi0hl/bliFjlTyzY7qIsolOXOmYP3MyvXj35RuETSOH7 LwKrp8E7ibXYtdZqQsyI56lr160k7PH4z/Tll8RPCuYesOZkoqPbYo2Rlw5oVIDv KawE9CVYWDa4Qh7zbHzIInaM0lsPDxg2aNMXckGwPrXVXBMqNC7Xq8bqQOlMq4M3 pYXJB0U1vrSwMtx9D7Dl1KTDa34DDhdiLGWVvEbCioAbqf7e1Is= =figQ -----END PGP SIGNATURE----- --=-=-=--