Am Mi., 14. Okt. 2020 um 10:53 Uhr schrieb Shiro Kawai <xxxxxx@gmail.com>:
>
> On Tue, Oct 13, 2020 at 10:46 PM Marc Nieper-Wißkirchen <xxxxxx@gmail.com> wrote:
>>
>>
>> How does Gauche implement "free-identifier=?"?
>
>
> We have an internal object that represents a binding. Two identifiers resolve to the same binding, or both resolves to no binding, returns #t for free-identifier=?.
So I think to implement define-auxiliary-syntax you need a
distinguished type of binding that is only parameterized by the name,
a symbol, right?
E.g.: (same-binding? (auxiliary-syntax-binding 'foo)
(auxiliary-syntax-binding 'foo)) => #t where
"auxiliary-syntax-binding" is a procedure return this type of binding.