home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / scheme / c / 98 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  842 b 

  1. Path: sparky!uunet!olivea!charnel!sifon!CC.UMontreal.CA!kardank
  2. From: kardank@ERE.UMontreal.CA (Kardan Kaveh)
  3. Newsgroups: comp.lang.scheme.c
  4. Subject: macro problem
  5. Message-ID: <1993Jan22.082118.21781@cc.umontreal.ca>
  6. Date: 22 Jan 93 08:21:18 GMT
  7. Sender: news@cc.umontreal.ca (Administration de Cnews)
  8. Organization: Universite de Montreal
  9. Lines: 23
  10.  
  11. What's wrong with the following?  MIT Scheme 7.2 complains f1 is unbound.
  12.  
  13. (define (f1 x) (* x x))
  14.  
  15. (define-macro (m1 y) `(+ 2 ,(f1 y)))
  16.  
  17. (m1 3)
  18.  
  19. ;Unbound variable: f1
  20.  
  21. Also, I can't seem to find any documentation on macros in the info files.
  22.  
  23. Thanks,
  24.  
  25. Kaveh
  26.  
  27.  
  28.  
  29. -- 
  30. ------------
  31. Kaveh Kardan                                       kaveh@taarna.UUCP
  32. Systeme Taarna                                     kardank@eole.umontreal.qc.ca
  33. Montreal Quebec Canada                             (514)844-8448
  34.