[Top][All Lists]

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

Re: [Chicken-users] how to unintern a symbol

From: Peter Bex
Subject: Re: [Chicken-users] how to unintern a symbol
Date: Mon, 2 Feb 2015 19:31:43 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Mon, Feb 02, 2015 at 10:51:26AM -0700, Alexej Magura wrote:
> Does Chicken have anything comparable to Common Lisp's /unintern/? I
> thought that it might be under /##sys/, since other features present
> in Common Lisp, but absent in Chicken are available under that
> namespace, but it doesn't seem to be provided by that
> module/namespace.

There's string->uninterned-symbol, which is even documented, right
below "gensym":

If you have a symbol you want to unintern, you can get its string
and create an uninterned symbol from that:

(define unintern (o string->uninterned-symbol symbol->string))

(eq? (unintern 'foo) 'foo) => #f


Attachment: signature.asc
Description: Digital signature

reply via email to

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