unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Help: equivalent syntax-case to defmacro
@ 2020-05-05 17:34 Dale Mellor
  2020-05-06 15:49 ` Taylan Kammer
  0 siblings, 1 reply; 2+ messages in thread
From: Dale Mellor @ 2020-05-05 17:34 UTC (permalink / raw
  To: guile-user

Been struggling with this for a while, and nothing I try works.

In test-suite/tests/getopt-long there is

     (defmacro deferr (name-frag re)
        (let ((name (symbol-append 'exception: name-frag)))
           `(define ,name (cons 'quit ,re))))

     (deferr no-such-option "no such option")
     (display exception:no-such-option)

and I would like to know how the equivalent with define-syntax... syntax-case would look.

Thanks,
Dale





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

end of thread, other threads:[~2020-05-06 15:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-05 17:34 Help: equivalent syntax-case to defmacro Dale Mellor
2020-05-06 15:49 ` Taylan Kammer

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).