[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Scheme-reports] Are generated toplevel definitions secret?
On Sun, Apr 24, 2011 at 04:40:41PM +0200, Andy Wingo wrote:
> Thanks for the note. In my example:
>
> (begin
> (define-syntax define-constant
> (syntax-rules ()
> ((_ var init)
> (begin
> (define val init)
> (define-syntax var (identifier-syntax val))))))
>
> (define-constant x 10)
> (define-constant y 20))
>
> If I put that in a chicken module, import the module, then access "x"
> and "y", does that evaluate to 10 and 20, respectively?
Chicken doesn't support identifier syntax, so it would show an error :)
Cheers,
Peter
--
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
is especially attractive, not only because it can be economically
and scientifically rewarding, but also because it can be an aesthetic
experience much like composing poetry or music."
-- Donald Knuth
_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports