www.delorie.com/gnu/docs/guile/guile_376.html   search  
 
Buy GNU books!


Guile Reference Manual

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

33.2.1 Feature Manipulation

To check whether a particular feature is available, use the provided? procedure:

Scheme Procedure: provided? feature
Deprecated Scheme Procedure: feature? feature
Return #t if the specified feature is available, otherwise #f.

To advertise a feature from your own Scheme code, you can use the provide procedure:

Scheme Procedure: provide feature
Add feature to the list of available features in this Guile process.

For C code, the equivalent function takes its feature name as a char * argument for convenience:

C Function: void scm_add_feature (const char *str)
Add a symbol with name str to the list of available features in this Guile process.


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003