unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Peter Silcock <peter@fastmail.uk>
To: Guile Mailing List <guile-user@gnu.org>
Subject: Request for assistance: (assertion-violation) unbound variable
Date: Thu, 08 Jun 2017 11:28:57 +0100	[thread overview]
Message-ID: <1496917737.4841.1.camel@fastmail.uk> (raw)

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: "In procedure module-
lookup: Unbound variable: assertion-violation."

So far I have found no pointers to a solution in 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







             reply	other threads:[~2017-06-08 10:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-08 10:28 Peter Silcock [this message]
     [not found] ` <CABPkNKk9Nm2GQ9=Su-B8jKrNsAwcow5FRqwOcz4dcCKQ3c7ELQ@mail.gmail.com>
2017-06-08 11:40   ` Request for assistance: (assertion-violation) unbound variable Peter Silcock
2017-06-11  6:23 ` Alex Vong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1496917737.4841.1.camel@fastmail.uk \
    --to=peter@fastmail.uk \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).