This is the mail archive of the guile@cygnus.com mailing list for the guile project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
This is probably a trivial question - but I've spent hours looking through the documentation without finding anything to help me. I need to be able to determine if a value passed to a macro is a bound variable, but if I pass it to any procedure (and it is not bound) , I will get an error because I am attempting to access an unbound variable, but if I quote it, I can't test it to see what type of data it refers to. What I need is something like a symbol->bound? procedure so I could write (if (symbol->bound? ',foo) ,foo (symbol->string ',foo)) to give me either the data refered to by the variable or a string. Is there any way to do this?