chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Placing "gensyms" in own namespace?


From: Kon Lovett
Subject: Re: [Chicken-users] Placing "gensyms" in own namespace?
Date: Tue, 28 Nov 2006 08:07:45 -0800

On Nov 27, 2006, at 11:32 PM, felix winkelmann wrote:

On 11/28/06, felix winkelmann <address@hidden> wrote:
On 11/28/06, Kon Lovett <address@hidden> wrote:
> Hi Folks,
>
> Looking at the current psyntax source I notice the use of 'gensym?'.
> Now, given the Chez Scheme providence, the use of this makes sense.
> However, implementing it in Chicken requires changes.
>

Sorry, I might be a bit on the slow side, but what about

(define (gensym? x)
  (and (symbol? x) (not (##sys#interned-symbol? x))))


(I tried to point this out by mentioning the previously attached
psyntax.scm which contains this code Perhaps you didn't notice, or
perhaps I misunderstand your intentions completely. If it is the
latter, Sorry - just ignore me).

No it is me. I guess I wanted to distinguish the results of 'string- >uninterned-symbol' from 'gensym' but in practice it doesn't make a difference.

Thanks,
Kon



cheers,
felix

--
http://galinha.ucpel.tche.br:8081/blog/blog.ssp





reply via email to

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