Warning: This is the manual of the legacy Guile 2.2 series. You may want to read the manual of the current stable series instead.

Next: , Previous: , Up: Binding Constructs   [Contents][Index]


6.12.4 Querying variable bindings

Guile provides a procedure for checking whether a symbol is bound in the top level environment.

Scheme Procedure: defined? sym [module]
C Function: scm_defined_p (sym, module)

Return #t if sym is defined in the module module or the current module when module is not specified; otherwise return #f.