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

Re: Symbols and classes



> How to test that a symbol corresponds to a class in CLOS ? 
> I know about the function Find-class (symbol) but I want to get nil and not
> an error if the symbol is not denoting a class.

This is controled by the optional second argument to FIND-CLASS, called errorp.  
If this argument is true or unsupplied (the default is true) then an error is 
signaled if the symbol doesn't name a class.  If the argument is false then NIL 
is returned in that situation.