unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* export in syntax-rules
@ 2003-01-26 23:12 Kevin Ryde
  2003-01-27 11:23 ` Mikael Djurfeldt
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Ryde @ 2003-01-26 23:12 UTC (permalink / raw)


In guile 1.6.1 on a recent i386 debian, I thought to use "export"
inside a syntax-rules in a module definition, for instance

    (define-module (abc def)
      #:use-module (ice-9 syncase))

    (define-syntax foo
      (syntax-rules ()
        ((foo name)
         (export name))))

    (define x 123)
    (foo x)

But I got an error,

    ERROR: In procedure variable-ref:
    ERROR: Wrong type argument in position 1 (expecting variable): #f

Is this sort of thing meant to work, or have I made some basic error?

(I was looking to make "-public" versions of some macros.  I got the
effect I wanted with a procedure->macro, but just wondered if the
syntax-rules style was valid.)


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-02-01  0:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-26 23:12 export in syntax-rules Kevin Ryde
2003-01-27 11:23 ` Mikael Djurfeldt
2003-02-01  0:49   ` Kevin Ryde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).