guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any way I can I export a macro that expands to "private" symbols?


From: Rob Browning
Subject: Re: Any way I can I export a macro that expands to "private" symbols?
Date: 29 Apr 2001 10:32:01 -0500
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Michael Livshin <address@hidden> writes:

> the Wadell/Dybvig module system includes functionality that lets you
> do just that (export some names, but only if used by a particular
> macro expansion).

Alternately, as a short-term measure, if we have a

  (module-ref (srfi srfi-19) crt-helper)

function, then that could be a workaround, though I'm just going to
handle this another way, I think.

> [ oh, and to (try to) answer your question from one day ago: yes, you
>   have to perform ugly magic to make `syntax-rules' do any nontrivial
>   stuff.

The ugly magic wasn't my problem, it was the publishing illegal syntax
bit, though perhaps that falls under your ugly magic category :>

>   `syntax-case' is much more powerful.  it also seems to be the
>   emerging de-facto standard (used by Chez, the upcoming MzScheme, and
>   a couple of other implementations).

Well, I was trying to stick with r5rs, but perhaps syntax-case will
bein r6rs, or become a srfi...

>   the downside (at least for me) is that I found the "advanced"
>   functionality of `syntax-case' absolutely unpenetrable.  like, I had
>   a couple of "hey, I finally get it!" moments, but everything was
>   gone the following morning... ]

Macros are like that :>

Thanks

-- 
Rob Browning <address@hidden> PGP=E80E0D04F521A094 532B97F5D64E3930



reply via email to

[Prev in Thread] Current Thread [Next in Thread]