[comp.sys.ti.explorer] eval-when problem - is it a bug?

rathke@informatik.uni-stuttgart.de (Christian Rathke) (02/27/90)

The following constellation causes an undefined function error when compiling
test-file:

;;;;; evaluate the following definitions

    (defmacro the-macro ()
      (macro-expander))
    
    
    (defun macro-expander ()
      (the-function))

;;;;; compile-file "test-file.lisp" which contains:

    (eval-when (compile load eval)
      (defun the-function ()
	t)
      )
    
    (the-macro)
    

Somehow the call to "the-function" does not get linked to the definition
in test-file and macro-expanding (the-macro) bombs.

This behavior (among other things?) causes rainy-day-pcl to not compile correctly.

Any help is greatly appreciated.

	-Christian

==============================================================================
Christian Rathke                    rathke@ifi.informatik.uni-stuttgart.dbp.de
Institut fuer Informatik
Universitaet Stuttgart
Forststrasse 86
D - 7000 Stuttgart 1                                       Tel.: 0711-121-1436
==============================================================================