source-file
Factor handbook > The implementation > Source files

Prev:source-files
Next:record-checksum ( lines source-file -- )


Vocabulary
source-files

Class description
Instances retain information about loaded source files, and have the following slots:
path - a pathname string.
top-level-form - a quotation composed of any code not used to define new words and classes
checksum - the CRC32 checksum of the source file's contents at the time it was most recently loaded.
definitions - a pair of assocs, containing definitions and classes defined in this source file, respectively
main - a word that gets called if you run the vocabulary


Definition


TUPLE: source-file
{ path string initial: "" } top-level-form checksum
definitions main ;


Methods