Resources

The following procedures support the inclusion of arbitrary data, known as a resource, in a program.

resource(file) is shorthand for resource_named(file,file).

resource_named(rd,file) declares that file is a resource file. It will be accessible via the reader rd if a bundle is built.

bundle(m) declares that the module m is to be built as a bundle of the files specified by the prior calls to resource and resource_named.

For a description of how to access resources from your running program, see the Bundle and Rsrc interfaces.