[Swift-devel] imports

Ben Clifford benc at hawaga.org.uk
Fri Jul 3 12:35:41 CDT 2009


swift r2996 contains an import directive which will import SwiftScript 
code from other .swift files into the current program.

This is done deep in the compiler, and is not a preprocessor.

You can import the samefile multiple times without trouble  it will only 
be processed once.

At present you can only iport files that are in the current working 
directory. $PTH/$CLASSPATH/$PERL5LIB style path handling should be 
straightforward to implement, though.

-- 




More information about the Swift-devel mailing list