🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ti.explorer
Article #465

eval-when problem - is it a bug?

#465
From: Christian Rathke
Date: Tue, 27 Feb 1990 11:38
38 lines
1542 bytes
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
==============================================================================
Technical Details
Message-ID: <2845094863-4833845@MANGO>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!bionet!agate!ucbvax!informatik.uni-stuttgart.de!rathke

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!bionet!agate!ucbvax!informatik.uni-stuttgart.de!rathke
From: rathke@informatik.uni-stuttgart.de (Christian Rathke)
Newsgroups: comp.sys.ti.explorer
Subject: eval-when problem - is it a bug?
Message-ID: <2845094863-4833845@MANGO>
Date: 27 Feb 90 11:38:52 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Distribution: inet
Organization: The Internet
Lines: 38
X-Unparsable-Date: Tue, 27 Feb 90  09:07:43 NIL