- Publicity: Public Only All
04-library-procs.tcl
XOTcl API for library file management (handling file-level dependencies)
- Location:
- packages/xotcl-core/tcl/04-library-procs.tcl
- Created:
- 2007-10-11
- Author:
- Gustaf Neumann
- CVS Identification:
$Id: 04-library-procs.tcl,v 1.6.2.3 2022/03/15 12:01:53 gustafn Exp $
Procedures in this file
- xo::library proc require (public)
- xo::library proc source_dependent (public)
Detailed information
xo::library proc require (public)
xo::library require [ -package package ] filename
Use this method to indicate when some other files (from the same package) are needed to be sourced before the current file. This method is useful in cases where the alphabetical loading order is a problem. A typical use-case is a file defining a subclass of another class. In this case, the file defining the subclass will require the definition of the base class.
- Switches:
- -package
(optional)- Parameters:
- filename - filename without path and .tcl suffix
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
xo::library proc source_dependent (public)
xo::library source_dependent
Source files extending classes of the current file. When classes are defined in this file and (some) of their methods are defined in other files, we have to load the methods of the other files after the classes are recreated in this file (recreation of classes deletes the old methods). Use "::xo::library source_dependent" at the end of a file when the classes are defined.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.