Next: , Up: libutils file-system   [Index]


7.8.1 File extensions

Usually file extensions are the tail part of a file name: everything after the last dot character; if the file name has no dot character: the extension is the empty string. Vicare extends this concept by defining as file extensions strings that must be appended to a library stem to build a library pathname (see libutils file-system pathnames for details on library stems).

Source library file extensions are basically:

.vicare.sls
.sls

and, usually, .sls is used. If the command line option --more-file-extensions is used, the following extensions are also considered:

/main.vicare.sls
/main.sls
/main.vicare.ss
/main.ss
/main.vicare.scm
/main.scm
.vicare.ss
.ss
.vicare.scm
.scm

There is a single binary library file extension: .fasl.

The following bindings are exported by the library (vicare libraries).

Parameter: library-extensions

Hold a list of strings representing source library file name extensions, leading dot included. This parameter is initialised to:

(".vicare.sls" ".sls")