[plt-scheme] Syntax and namespaces

From: Don Felgar (dfelgar at rainier-infosys.com)
Date: Sun Aug 29 14:06:36 EDT 2004

> At Sat, 28 Aug 2004 00:16:11 -0700, Don Felgar wrote:
> > Given this:
> > 
> >     (define x "The quoted expression is: ")
> > 
> > can I create something to this effect
> > 
> >     (define-syntax foo
> >       (syntax-rules ()
> >         ((_ path)
> > 	 (begin
> > 	  (display x)
> > 	  (display 'path)
> > 	  (newline)))))
> > 
> > in a different namespace?
> 
> I see several different answers, depending on exactly what you need.

Thanks for fielding this lame question.  I was tired and left out the
real issue.  I finally got traction with syntax-case and solved the
problem.

--Don


Posted on the users mailing list.