Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion apparently undefined function called by macro
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Greg Bacon  
View profile  
 More options Jun 27 2006, 1:10 pm
Newsgroups: comp.lang.lisp
From: gba...@hiwaay.net (Greg Bacon)
Date: Tue, 27 Jun 2006 17:10:19 -0000
Local: Tues, Jun 27 2006 1:10 pm
Subject: Re: apparently undefined function called by macro
In article <4gd3pbF1ltb6...@news.dfncis.de>,
    Stefan Mandl  <stefan.ma...@informatik.uni-erlangen.de> wrote:

: From my limited knowledge:
:
: Remember that macros are functions that run during compilation.
:
: When you call:
:
: (define-foo-class bar
:        ((baz  :initarg :baz  :accessor baz)
:         (quux :initarg :quux :accessor quux)))
:
: the *compiler* has to call the macro function and therefore has to call
: your id function.
:
: So in order to make sure that the compiler knows id's definition,
: wrapping id into a eval-when form is no mere workaround but standard
: technique.

Thanks, Stefan.

I see that FAQ 3-7 also addresses the issue:

http://www.cs.cmu.edu/Groups/AI/html/faqs/lang/lisp/part3/faq-doc-8.html

I was confused because in chapter 24 of PCL, Seibel defines similar
macros that call functions, and all the code is ASDF-loadable.

The difference that I missed is he defines the macros in one package and
expands them in others after the whole supporting cast has been loaded.

Greg


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.