Skip to content

require

Norbert Preining edited this page Oct 6, 2017 · 2 revisions

require <feature> [ <pathname> ]

Requires a feature, which usually denotes a set of module definitions. Given this command, the system searches for a file named the feature, and read the file if found. If the <feature> contains ::, they are treated as path separators.

If a pathname is given, the system searches for a file named the pathname instead.

Related: provide

Example

CafeOBJ> require foo::bar

would search for foo/bar.cafe in the pathes from libpath

Clone this wiki locally