[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mark uniqueness
From: |
Andy Wingo |
Subject: |
Re: mark uniqueness |
Date: |
Wed, 25 Jan 2012 10:02:45 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
On Wed 25 Jan 2012 01:26, Mark H Weaver <address@hidden> writes:
> Andy Wingo <address@hidden> writes:
>
>> (define-syntax-rule (define-const x val)
>> (begin
>> (define t val)
>> (define-syntax x (identifier-syntax t))))
>>
>> Here, `t' will have a fresh mark.
>>
>> Now, if in one compilation unit, I do:
>>
>> (define-const x 10)
>>
>> And in another, I do:
>>
>> (let ((t 20))
>> x) => ?
>>
>> You would expect the result to be 20. But I think it could be 20, if
>> the marks on the two "t"s happened to collide.
FWIW I think this example wasn't quite right; you'd need to have the
case where both "t"s that are visible have marks. Like in compilation
unit B:
(let ()
(define-const y 20)
x) => ?
Cheers,
Andy
--
http://wingolog.org/
- Re: syntax-local-binding, (continued)
- Re: syntax-local-binding, Peter TB Brett, 2012/01/24
- Re: syntax-local-binding, David Kastrup, 2012/01/24
- Re: syntax-local-binding, Andy Wingo, 2012/01/24
- Re: syntax-local-binding, Mark H Weaver, 2012/01/24
- mark uniqueness (Was: Re: syntax-local-binding), Andy Wingo, 2012/01/24
- Re: mark uniqueness, Mark H Weaver, 2012/01/24
- Re: mark uniqueness,
Andy Wingo <=
- Re: syntax-local-binding, Andy Wingo, 2012/01/24
- Re: syntax-local-binding, Mark H Weaver, 2012/01/24
- Re: syntax-local-binding, Stefan Israelsson Tampe, 2012/01/25
- Re: syntax-local-binding, Andy Wingo, 2012/01/25
- Re: syntax-local-binding, Ludovic Courtès, 2012/01/25
- Re: syntax-local-binding, Mark H Weaver, 2012/01/25
- Re: syntax-local-binding, Andy Wingo, 2012/01/26