Next: , Previous: , Up: iklib expander   [Index]


6.14.3 Additional export specifications

Export Spec: prefix (?internal ...) ?prefix

Prepend the specified prefix to the selected internal symbols and add the result to the export list. This clause is forbidden when running with the command line option --strict-r6rs.

(library (demo)
  (export
    (prefix (these those) yeah.))
  (import (rnrs))
  (define (these) "these")
  (define (those) "those"))
Export Spec: deprefix (?internal ...) ?prefix

Remove the specified prefix from the selected internal symbols and add the result to the export list. This clause is forbidden when running with the command line option --strict-r6rs.

(library (demo)
  (export
    (deprefix (yeah.this yeah.that) yeah.))
  (import (rnrs))
  (define (yeah.this) "this")
  (define (yeah.that) "that"))
Export Spec: suffix (?internal ...) ?suffix

Append the specified suffix to the selected internal symbols and add the result to the export list. This clause is forbidden when running with the command line option --strict-r6rs.

(library (demo)
  (export
    (suffix (these those) _yeah))
  (import (rnrs))
  (define (these) "these")
  (define (those) "those"))
Export Spec: desuffix (?internal ...) ?suffix

Remove the specified suffix from the selected internal symbols and add the result to the export list. This clause is forbidden when running with the command line option --strict-r6rs.

(library (demo)
  (export
    (desuffix (this_yeah that_yeah) _yeah))
  (import (rnrs))
  (define (this_yeah) "this")
  (define (that_yeah) "that"))