Copyright (C) 2000-2012 |
GNU Info (librep.info)Module InterfacesModule Interfaces ----------------- Each module implements an interface--the set of bindings (i.e. functions, macros or variables) that it exports to other modules. Interfaces may either be defined and then referenced by name, written literally, or combined from a number of sources. The syntax of interface definitions is as follows: INTERFACE -> (export ID ...) | NAME | (compound-interface INTERFACE ...) | (structure-interface MODULE-NAME) where each ID is the name of a binding to export, and each NAME is the name of an interface previously defined using `define-interface'. - Macro: define-interface name interface Associate the symbol NAME with the module interface INTERFACE (using one of the forms listed above. Here is an example defining an interface called `foo': (define-interface foo (compound-interface bar (export baz quux))) It includes the interface called `bar' and adds two extra exported symbols: `baz' and `quux'. automatically generated by info2www version 1.2.2.9 |