unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* exporting procedure else now breaks case's else clause
@ 2014-09-14  9:42 Jan Nieuwenhuizen
  2014-09-15  2:14 ` mhw
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Nieuwenhuizen @ 2014-09-14  9:42 UTC (permalink / raw)
  To: guile-user

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  



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-15  2:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-14  9:42 exporting procedure else now breaks case's else clause Jan Nieuwenhuizen
2014-09-15  2:14 ` mhw

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).