RE: bug involving assert-equals? and map
"Anton van Straaten" <[email protected]> Thu, 9 Sep 2004 20:50:01 -0400
| Newsgroups | gmane.lisp.scheme.plt.schematics |
|---|---|
| Message-ID | <[email protected]> |
Aureliano Calvo wrote: > I've just download the latest snapshot using CVS. > Executing (map assert-equal? '(1) '(1)) on DrScheme > (using the PrettyBig Language) gives this error: > > assert-equal?: bad syntax in: assert-equal? > > But (assert-equal? 1 1) works fine. > > This bugs breaks the matrix-test.ss test on the > schemathics module. > > I'm a beginner with scheme, so I don't know how to > correct the macros involved. Scheme doesn't allow you to use macros directly with 'map'. The first argument to map has to be a procedure, whereas (I assume) assert-equal? is a macro. So, you should be able to do this: (map (lambda (a b) (assert-equal? a b)) '(1) '(1)) Anton ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php