se find [options] [<ACEfile.ace>] <Class>
The find command tells you which file is loaded when searching
for an Eiffel <Class>.
As for other commands, when the ACE file mode is used, only the content of the <ACEfile.ace> file is used to search the source file.
To see the loading path used by SmartEiffel, you can for example type the find command using a bad (inexistent) class name.
In ACE file mode, the loading path can be updated by modifying the ACE file itself. In traditional mode (i.e. no ACE file), the default loading path may also be tailored (see below).
1. Lower case filenames - SmartEiffel looks all along the loading path (see below) using <class> name in lower case as tail. If needed, the Eiffel suffix (".e") is added automatically. SmartEiffel only looks for suffixed files on the disk. Only the first file encountered according to the order of the path is taken in account. File is always supposed to have the same name as the inside class definition.
2. Renamed files -
When the above search has failed to find a file, SmartEiffel tries
to search for files rename.se in all directories of the path.
Thus, knowing the algorithm of SmartEiffel to find a class file, it is better not to use the renaming facilities to speed up class loading (see below for more details about the loading path algorithm).
3. Upper case filenames - Finally,
when both previous steps did not find the required Eiffel class file,
SmartEiffel looks along the loading path
(see below) for a file bearing the class
name upper in upper case letters.
If needed, the Eiffel suffix ".e" is added automatically.
As described above, SmartEiffel looks for classes in .e files. But where should those files be situated? The answer is, in the loading path. The thing is, how is the loading path built, what are the default values, and how can it be changed?
Note: The following applies only if no ACE file is provided. If an ACE file is provided, only the listed clusters in that file are considered.
There are many things that are taken into account. Let's take them in order, from the most important to the least (i.e., in the order SmartEiffel looks in; remember that the first filename that matches is used, thus allowing class covering).
Copyright © Dominique COLNET and Suzanne COLLIN - <SmartEiffel@loria.fr>
Last modified: Tue Feb 11 12:15:38 CET 2003