Changeset 15794 in project for chicken


Ignore:
Timestamp:
09/08/09 13:19:42 (10 years ago)
Author:
felix
Message:

documented reexport; added test

Location:
chicken/trunk
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • chicken/trunk/NEWS

    r15770 r15794  
    44
    55- added compiler option `-emit-all-import-libraries'
     6
     7- added `reexport'
     8
     9- added compiler and interpreter option `-setup-mode'
    610
    711
  • chicken/trunk/distribution/manifest

    r15612 r15794  
    230230tests/syntax-tests-2.scm
    231231tests/meta-syntax-test.scm
     232tests/reexport-tests.scm
    232233tests/ec.scm
    233234tests/ec-tests.scm
  • chicken/trunk/manual/Modules and macros

    r15059 r15794  
    351351
    352352
     353==== reexport
     354
     355  [syntax] (reexport IMPORT ...)
     356
     357Imports {{IMPORT ...}} and automatically exports all imported identifiers.
     358This can be used to build ''compound modules'': modules that just extend
     359other modules:
     360
     361<scheme>
     362(module r4rs ()
     363  (import scheme chicken)
     364  (reexport
     365    (except scheme
     366      dynamic-wind values call-with-values eval scheme-report-environment
     367      null-environment interaction-environment)))
     368</scheme>
     369
     370
    353371=== import libraries
    354372
  • chicken/trunk/manual/Non-standard macros and special forms

    r13683 r15794  
    5151
    5252This is equivalent to {{(require-library ID ...)}} but performs an implicit
    53 {{import}}, if necessary.
     53{{import}}.
    5454This implementation of {{require-extension}} is compliant with [[http://srfi.schemers.org/srfi-55/srfi-55.html|SRFI-55]]
    5555(see the [[http://srfi.schemers.org/srfi-55/srfi-55.html|SRFI-55]] document for more information).
  • chicken/trunk/scripts/wiki2html.scm

    r15100 r15794  
    230230        (('procedure strs ...)
    231231         `(pre "\n [procedure] " ,@strs))
     232        (('scheme strs ...)
     233         `(pre "\n" ,@strs))
    232234        (('nowiki content ...)
    233235         `(div ,content))
  • chicken/trunk/tests/runtests.sh

    r15773 r15794  
    8484#$compile_s -s foo.import.scm
    8585#$interpret -bnq -e '(require-library meta-syntax-test)' -e '(import foo)' -e '(bar 1 2)'
     86
     87echo "======================================== reexport tests ..."
     88$interpret -bnq reexport-tests.scm
     89$compile reexport-tests.scm
     90./a.out
    8691
    8792echo "======================================== compiler syntax tests ..."
Note: See TracChangeset for help on using the changeset viewer.