manpagez: man pages & more
info bigloo
Home | html | info | man
[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.6 Module access file

Bigloo is different from languages such as C where a module is defined by a file. For Bigloo, the module name is not necessarily the name of the file where the text of the module is written and modules can even be split across several files.

Since modules are defined independently of files, it is necessary to make a link between a module and its files and there are two ways of doing this. Choosing an import clause where the file-names are specified or creating a “module access file”. Such a file must contain only one list, each element of the list being of the form:

(module-name "file-name" ... "file-name")

Use the ‘-afile <file>’ option to specify the “module access file” when compiling. By default Bigloo checks if a file named .afile exists. If it exists it is loaded as a module access file.

See section The Bigloo command line.

Note: The Bigloo distribution contains a tool, bglafile, that can automatically build a “module access file”. See the manpage for bglafile for details.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated on March 31, 2014 using texi2html 5.0.

© manpagez.com 2000-2024
Individual documents may contain additional copyright information.