Subject: Re: macro and extend-syntax
From: rpw3@rigden.engr.sgi.com (Rob Warnock)
Date: 1998/11/01
Newsgroups: comp.lang.scheme
Message-ID: <71hi5h$2sh0a@fido.engr.sgi.com>
Dr. Alan Bond <bond@vision.caltech.edu> wrote:
+---------------
| I'm teaching Scheme but none of the various Scheme systems we have
| installed, namely scm, mit-scheme and elk do not seem to have
| either macro or extend-syntax.
+---------------

SCM has "defmacro" builtin, and that's quite sufficient to load the R4RS
macros in SLIB (q.v.).

Elk has a "define-macro" that is sufficient to trivially define "defmacro",
and from there...

Also, MzScheme has a "define-macro" (trivially different than Elk's),
so you could also go the SLIB route, though MzScheme comes with its
own define-syntax/syntax-rules implementation in its library.

[Dunno 'bout MIT-Scheme.]

+---------------
| Do macro facilities have different names in these systems?
+---------------

The name for the lowest-level macro facility does vary widely among
implementations, but there's (almost) always one there if you look
long enough, and it's almost always good enough to let you bootstrap
up the SLIB R4RS macros, if nothing else.


-Rob

-----
Rob Warnock, 8L-855		rpw3@sgi.com
Applied Networking		http://reality.sgi.com/rpw3/
Silicon Graphics, Inc.		Phone: 650-933-1673
2011 N. Shoreline Blvd.		FAX: 650-964-0811
Mountain View, CA  94043	PP-ASEL-IA