* Re: [Guile-commits] GNU Guile branch, syncase-in-boot-9, updated. 3d5f3091e100550052abc698e980b3e86cc01b65 [not found] <E1LzFO3-0008J4-56@cvs.savannah.gnu.org> @ 2009-04-30 10:30 ` Ludovic Courtès 2009-04-30 10:57 ` Andy Wingo 0 siblings, 1 reply; 2+ messages in thread From: Ludovic Courtès @ 2009-04-30 10:30 UTC (permalink / raw) To: Andy Wingo; +Cc: guile-devel Hello! "Andy Wingo" <wingo@pobox.com> writes: > * libguile/macros.h: Add API for syncase macros. Perhaps these should be made `SCM_INTERNAL'? > +SCM_DEFINE (scm_make_syncase_macro, "make-syncase-macro", 2, 0, 0, > + (SCM type, SCM binding), > + "Return a @dfn{macro} that requires expansion by syntax-case.\n" [...] > +SCM_DEFINE (scm_make_extended_syncase_macro, "make-extended-syncase-macro", 3, 0, 0, > + (SCM m, SCM type, SCM binding), > + "Extend a core macro @var{m} with a syntax-case binding.") Can you explain how it works? Having a SMOB type for `syntax-case' macros seems counter-intuitive to me. :-) Thanks, Ludo'. ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Guile-commits] GNU Guile branch, syncase-in-boot-9, updated. 3d5f3091e100550052abc698e980b3e86cc01b65 2009-04-30 10:30 ` [Guile-commits] GNU Guile branch, syncase-in-boot-9, updated. 3d5f3091e100550052abc698e980b3e86cc01b65 Ludovic Courtès @ 2009-04-30 10:57 ` Andy Wingo 0 siblings, 0 replies; 2+ messages in thread From: Andy Wingo @ 2009-04-30 10:57 UTC (permalink / raw) To: Ludovic Courtès; +Cc: guile-devel Hi, On Thu 30 Apr 2009 12:30, ludo@gnu.org (Ludovic Courtès) writes: > "Andy Wingo" <wingo@pobox.com> writes: > >> * libguile/macros.h: Add API for syncase macros. > > Perhaps these should be made `SCM_INTERNAL'? The functions should probably be public, as they are public to Scheme. The bit-twiddlings should either be left as-is, or pulled into macros.c -- but there is already some bit-twiddling that's public. >> +SCM_DEFINE (scm_make_syncase_macro, "make-syncase-macro", 2, 0, 0, >> + (SCM type, SCM binding), >> + "Return a @dfn{macro} that requires expansion by syntax-case.\n" > > [...] > >> +SCM_DEFINE (scm_make_extended_syncase_macro, "make-extended-syncase-macro", 3, 0, 0, >> + (SCM m, SCM type, SCM binding), >> + "Extend a core macro @var{m} with a syntax-case binding.") > > Can you explain how it works? Having a SMOB type for `syntax-case' > macros seems counter-intuitive to me. :-) It's the same smob type as normal macros, but a different macro type. Have another look :) Andy -- http://wingolog.org/ ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-30 10:57 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <E1LzFO3-0008J4-56@cvs.savannah.gnu.org> 2009-04-30 10:30 ` [Guile-commits] GNU Guile branch, syncase-in-boot-9, updated. 3d5f3091e100550052abc698e980b3e86cc01b65 Ludovic Courtès 2009-04-30 10:57 ` Andy Wingo
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).