chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] testing if a symbol has been interned


From: Alexej Magura
Subject: [Chicken-users] testing if a symbol has been interned
Date: Fri, 19 Dec 2014 23:38:43 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

In Common Lisp, clisp specifically, you can test whether a symbol has been bound, that is interned, or not using boundp; is there a way to do this in Chicken?

(boundp 'a) ; nil
(defvar a 1)
(boundp 'a) ; t

I wrote up a function once a while back that used exception handling to check if a symbol had been defined, but if there's already an egg that provides this support or if it's built-in, I wanted to know so that I wouldn't have to bother trying to rewrite said function.
-- 
Alexej Magura

reply via email to

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