Re: bug involving assert-equals? and map
Noel Welsh <noelwelsh-/[email protected]> Fri, 10 Sep 2004 01:04:14 -0700 (PDT)
| Newsgroups | gmane.lisp.scheme.plt.schematics |
|---|---|
| Message-ID | <[email protected]> |
--- Aureliano Calvo <aurelianocalvo-/[email protected]> 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. > As Anton has pointed out, the assert-equal? macro cannot be used in this situation, where a function is expected. For these situations there are functions that 'shadow' the macro definitions. They have the same name except a * is appended. So you should write: map assert-equal?* '(1) '(1)) and it should work. HTH, Noel ===== Email: noelwelsh <at> yahoo <dot> com AIM: noelhwelsh __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- 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