unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Marco Maggi <marco.maggi-ipsu@poste.it>
To: guile-user@gnu.org
Subject: [r6rs] abusive request for help on "unbound variable" error
Date: Thu, 18 Nov 2010 22:25:29 +0100	[thread overview]
Message-ID: <874obe1fzq.fsf@rapitore.luna> (raw)

Ciao,

  sorry for being abusive in this request; I am developing a
small  experimental  package[1] and  so  far  it works  with
Larceny,  Mosh,  Petite  Chez,  Racket, Vicare  and  Ypsilon
(meaning that  it passes the  tests I have written  so far);
for this  reason I  am somewhat confident  that the  code is
"correct".

  With       Guile's       master      branch       checkout
8d10ccae79ff46f0ebea92ba36acfaebafba8d86        on        an
i686-pc-linux-gnu I get the following error:

;;; compiling ./tests/test-functional.sps
;;; WARNING: compilation of ./tests/test-functional.sps failed:
;;; key vm-error, throw_args (vm-run "VM: Unbound variable: ~s" (#<variable 8506618 value: #<undefined>>))
guile: uncaught throw to vm-error: (vm-run "VM: Unbound variable: ~s" (#<variable 8506618 value: #<undefined>>))

it is cryptic to say the least; commenting out all the tests
from the "test-functional.sps" file  the error goes away, it
seems that the form:

(define-type +
  ((<fixnum> <fixnum> -> <fixnum>)      fx+)
  ((<flonum> <flonum> -> <flonum>)      fx+)
  ((<number> <number> -> <number>)      +))

at line 67 is enough to trigger the error.  I wonder if some
kind  soul can  try it  and/or suggest  how to  inspect this
further; if  you do,  just running "make  gtest" in  the top
source directory will run the test with Guile.

TIA

P.S. It appears that some  or all the bindings from the R6RS
libraries:

  (rnrs arithmetic fixnums)
  (rnrs arithmetic flonums)

are not re-exported by (rnrs).

[1] <https://github.com/marcomaggi/toy-functional>
-- 
Marco Maggi



             reply	other threads:[~2010-11-18 21:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-18 21:25 Marco Maggi [this message]
2010-11-19 11:48 ` [r6rs] abusive request for help on "unbound variable" error Marco Maggi
2010-11-19 11:52   ` Marco Maggi
2010-11-20 22:32 ` Andy Wingo
2010-11-21  7:35   ` Marco Maggi
2010-11-21 22:12     ` Andreas Rottmann
2010-11-21 22:27       ` Andreas Rottmann

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=874obe1fzq.fsf@rapitore.luna \
    --to=marco.maggi-ipsu@poste.it \
    --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).