[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: case-lambda* question
From: |
Andy Wingo |
Subject: |
Re: case-lambda* question |
Date: |
Mon, 14 Jan 2013 10:39:38 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) |
On Wed 14 Nov 2012 11:20, Daniel Llorens <address@hidden> writes:
> (pass-if "case-lambda*"
> (null? (call-with-warnings
> (lambda ()
> (compile '(let ((f (case-lambda*
> ((x #:optional y) 1)
> ((x #:key y) 2)
> ((x y #:key z) 3))))
> (list (f 1)
> (f 1 2)
> (f #:y 2)
> (f 1 2 #:z 3)))
> #:opts %opts-w-arity
> #:to 'assembly)))))
>
> I also get an error here. Strangely, I can run make check without
> anything being reported.
The test doesn't actually run the result, it just compiles it. That's
why it "works".
Andy
--
http://wingolog.org/
- Re: case-lambda* question,
Andy Wingo <=