🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.scheme.c
Article #197

macro problem

#197
From: Kardan Kaveh
Date: Fri, 22 Jan 1993 08:21
23 lines
875 bytes
What's wrong with the following?  MIT Scheme 7.2 complains f1 is unbound.

(define (f1 x) (* x x))

(define-macro (m1 y) `(+ 2 ,(f1 y)))

(m1 3)

;Unbound variable: f1

Also, I can't seem to find any documentation on macros in the info files.

Thanks,

Kaveh



-- 
------------
Kaveh Kardan                                       kaveh@taarna.UUCP
Systeme Taarna                                     kardank@eole.umontreal.qc.ca
Montreal Quebec Canada                             (514)844-8448
Technical Details
Message-ID: <1993Jan22.082118.21781@cc.umontreal.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!charnel!sifon!CC.UMontreal.CA!kardank

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!charnel!sifon!CC.UMontreal.CA!kardank
From: kardank@ERE.UMontreal.CA (Kardan Kaveh)
Newsgroups: comp.lang.scheme.c
Subject: macro problem
Message-ID: <1993Jan22.082118.21781@cc.umontreal.ca>
Date: 22 Jan 93 08:21:18 GMT
Sender: news@cc.umontreal.ca (Administration de Cnews)
Organization: Universite de Montreal
Lines: 23