[Top][All Lists]

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

Re: gentemp deprecation

From: Michael Livshin
Subject: Re: gentemp deprecation
Date: 16 May 2001 23:23:07 +0300
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Copyleft)

Martin Grabmueller <address@hidden> writes:

> The problem is that I can not imagine a way to safely create unique
> symbols, since the only functions left for creating symbols are
>   extern SCM scm_mem2symbol (const char*, scm_sizet);
>   extern SCM scm_str2symbol (const char*);
> which both enter the symbol into the global symbol hash table.  So it
> is always possible to create symbols (i.e. with string->symbol) eq? to
> symbols returned by gensym.  Can anyone else think of a solution
> here?

one option is to make a new primitive
   extern SCM scm_mem2uninterned_symbol (const char*, size_t);

another option is to make a new "unreadable symbol" type and have
`gensym' return those.

[ I have a mild deja vu about this.  wasn't it already discussed at
  length?  if so, what was decided? ]

Our users will know fear and cower before our software. Ship it! Ship
it and let them flee like the dogs they are!
                                        -- Klingon Programmer

reply via email to

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