July 03, 2006
Note that export don't make much sense in this case. A function in one file can be used in the other if the file is imported:

file1.d
------------
module file1;

void foo() {}

file2.d
-----------
module file2;

private import file1;

main()
{
foo();
}



-- 
Lars Ivar Igesund
blog at http://larsivi.net
DSource & #D: larsivi

--------------------------------

Which brings up another question:

As I understand it, if file1.d were in a subdirectory, it would be: import subdir.file1

Suppose file1.d was in the parent (..\file1.d) or parallel (..\dir\file1.d)?