[Bese-devel] Sort-of feature request.
Henrik Hjelte
henrik at evahjelte.com
Thu Jul 3 08:12:59 UTC 2008
On Wed, Jul 2, 2008 at 2:54 PM, Robin Lee Powell
<rlpowell at digitalkingdom.org> wrote:
> Hey all. I've just moved in from Scheme land, and I'm using FiveAM
> for a project of mine.
>
> I've been trying to do stuff like this:
>
> (defun menu-tests (page-title)
> (test ... page-title ...))
>
> ...
> (in-suite home-page)
>
> (menu-tests "Home")
>
> It doesn't work because "test" expands to an explicit call to
> compile in the COMMON-LISP-USER package, which has no idea what
> page-title is, so "page-title" is an unbound variable (which,
> naturally, is crap).
>
> I can get around this with macros, of course. I assume that there's
> a good reason that test does what it does, but if there isn't, I'd
> love if it didn't. :)
>From memory, I think that compile is there to make sure that fiveam always
picks up redefefined macros. I think you have proposed a perfect
solution already, make menu-tests into a macro instead of a
function.
/Henrik Hjelte
More information about the bese-devel
mailing list