warn if not top-level?
- From: Chris Riesbeck <criesbeck@xxxxxxxxx>
- Date: Mon, 27 Jun 2005 14:09:50 -0500
I have a macro RUN-TESTS that runs test code. (Tests
are defined with DEFINE-TEST.) To support tests on macros,
test code is stored uncompiled and assembled when RUN-TESTS
is expanded.
I would like to warn users that code like
(DEFUN MY-TESTS () (RUN-TESTS ...))
may be a mistake, since the code saved in MY-TESTS will
no longer be updated when tests are updated or macros
are redefined.
Is there any portable way to recognize the above situation?
Or should I change RUN-TESTS to expand into code that
collects code at run-time and calls EVAL?
.
- Follow-Ups:
- Re: warn if not top-level?
- From: Coby Beck
- Re: warn if not top-level?
- From: Barry Margolin
- Re: warn if not top-level?
- From: Kaz Kylheku
- Re: warn if not top-level?
- Prev by Date: Re: ILC2005: McCarthy denounces Common Lisp, "Lisp", XML, and Rahul
- Next by Date: Re: Asking for Alioth shootout help on "fasta" benchmark
- Previous by thread: format layout control ~@< ~@:>
- Next by thread: Re: warn if not top-level?
- Index(es):
Relevant Pages
|