unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Jan Nieuwenhuizen <janneke@gnu.org>
To: guile-user@gnu.org
Subject: exporting procedure else now breaks case's else clause
Date: Sun, 14 Sep 2014 11:42:01 +0200	[thread overview]
Message-ID: <87y4tmilna.fsf@drakenvlieg.flower> (raw)

Hi,

In stable-2.0, this works

    (define-module (case) #:export (else))
    (define (else ast) (if (> (length ast) 3) (cadddr ast) #f))
    (define t 't) (case t ((t) #t) (else (eq? t 't)))

with latest master it breaks as soon as else is added to the exports
list:

    ;;; /home/janneke/vc/verum/development/gaiag/module/gaiag/case.scm:9:31: case: invalid clause in subform (else (eq? t (quote t))) of (case t ((t) #t) (else (eq? t (quote t))))
    language/cps/reify-primitives.scm:75:11: In procedure #<procedure 2477220 at ice-9/boot-9.scm:509:12 (expr clause clauses)>:
    language/cps/reify-primitives.scm:75:11: Syntax error:
    /home/janneke/vc/verum/development/gaiag/module/gaiag/case.scm:9:31: case: invalid clause in subform (else (eq? t (quote t))) of (case t ((t) #t) (else (eq? t (quote t))))

Bug or feature?

Greetings, Jan

-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar®  http://AvatarAcademy.nl  



             reply	other threads:[~2014-09-14  9:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-14  9:42 Jan Nieuwenhuizen [this message]
2014-09-15  2:14 ` exporting procedure else now breaks case's else clause mhw

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=87y4tmilna.fsf@drakenvlieg.flower \
    --to=janneke@gnu.org \
    --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).