Wiki
Download
Manual
Eggs
API
Tests
Bugs
show
edit
history
You can edit this page using
wiki syntax
for markup.
Article contents:
== Outdated egg! This is an egg for CHICKEN 4, the unsupported old release. You're almost certainly looking for [[/eggref/5/inclub|the CHICKEN 5 version of this egg]], if it exists. If it does not exist, there may be equivalent functionality provided by another egg; have a look at the [[https://wiki.call-cc.org/chicken-projects/egg-index-5.html|egg index]]. Otherwise, please consider porting this egg to the current version of CHICKEN. [[toc:]] == Inclub === Description The syntax form {{inclub}} is a convenience substitute for {{include}} for use in multi-file projects. When the program may be run either interpreted or compiled, and may be executed from outside its directory, possibly through a symlink, inclub handles the details of making sure the "inclubbed" files get loaded as intended. In compiled code, inclub simply expands to include, meaning the inclubbed file will be compiled into the binary. In interpreted code, inclub resolves any symlinks back to the directory the program resides in, and calls {{load}} on the inclubbed file in that directory. === Authors * John J Foerch === Repository The source can be obtained or browsed [[http://github.com/retroj/inclub|on github]]. === Requirements * [[filepath]] === API <macro>(inclub STRING)</macro> === Examples ==== Basic Usage To use inclub to load a file called "myfile.scm": <enscript highlight="scheme"> (use inclub) (inclub "myfile") </enscript> If myfile.scm contains a module called {{myfile}}, add this: <enscript highlight="scheme"> (import myfile) </enscript> If the project has multiple modules that need to import a module provided by an inclubbed file, the file should be inclubbed only in the main file; the other files can then import the module. === Acknowledgements Thanks to Zbigniew for working out the basic mechanism, and also for proposing the name "inclub" — ''inclub: the brute force include.'' === License BSD === Version History * 0.1: (2012-01-01) initial release * 0.2: (2012-05-11) trivial update
Description of your changes:
I would like to authenticate
Authentication
Username:
Password:
Spam control
What do you get when you add 20 to 17?