4 Jun 22:24
determining if a variable is bound
From: Todd Dukes <tdukes <at> freescale.com>
Subject: determining if a variable is bound
Newsgroups: gmane.lisp.scheme.bigloo
Date: 2008-06-04 20:25:19 GMT
Expires: This article expires on 2008-06-18
Subject: determining if a variable is bound
Newsgroups: gmane.lisp.scheme.bigloo
Date: 2008-06-04 20:25:19 GMT
Expires: This article expires on 2008-06-18
Is there any way to determine if a variable is bound in the current
context?
I have something like
(let ((x 1)
(y 2))
(user-code))
Where the top part of the let block is constructed programmatically,
the user code is inserted and the whole thing is passed to eval.
I would like to have something like this in the user-code:
(if (bound? z)
(+ x y z)
(+ x y))
Does this capability exist?
Thanks,
Todd.
RSS Feed