From: Roland Orre <orre@nada.kth.se>
Subject: Found a bug in guile 1.6.0
Date: 26 Dec 2002 22:30:32 +0100 [thread overview]
Message-ID: <1040938196.4595.75.camel@localhost> (raw)
In-Reply-To: <E18Oj9j-0000F0-00@giblet.glug.org>
I found a bug when a let clause only contains a macro.
When the clause also contains a lambda clause it works.
The procedures iserror1 and iserror2 below gives the following error message:
: In procedure cadr in expression (cadr x):
: Wrong type argument in position 1: (#@push! stack vec)
but the procedure isworking below is working.
(define-public push!
(procedure->macro
(lambda(x env) `(set! ,(cadr x) (cons ,(caddr x) ,(cadr x))))))
(define stack '())
(define iserror1
(lambda(size)
(let ((vec (make-vector size #f)))
(push! stack vec)
vec)))
(define iserror2
(lambda(size)
(let ((vec (make-vector size #f)))
""
(push! stack vec)
vec)))
(define isworking
(lambda(size)
(let ((vec (make-vector size #f)))
(lambda()#f)
(push! stack vec)
vec)))
(iserror1 1)
(iserror2 1)
(isworking 1)
Best regards
Roland Orre
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user
next prev parent reply other threads:[~2002-12-26 21:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-18 18:42 Continuations: possible newbie question Thien-Thi Nguyen
2002-12-26 21:30 ` Roland Orre [this message]
2002-12-26 23:08 ` Found a bug in guile 1.6.0 Marius Vollmer
[not found] <200212262346.gBQNkaNc029823@smtp.nada.kth.se>
2002-12-26 23:50 ` Returned mail: see transcript for details Roland Orre
2002-12-27 0:02 ` Found a bug in guile 1.6.0 Roland Orre
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=1040938196.4595.75.camel@localhost \
--to=orre@nada.kth.se \
/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).