Import module in D from a sister folder? -


suppose have following directory structure project:

myproj/dir1/file1.d myproj/dir2/file2.d myproj/main.d 

how can import main , file2 modules within source file file1.d?

file1.d have module dir1.file1; line , file2.d have module dir2.file2; line , main.d start module main;.

module declarations above tell d when encounters line like: import main, dir2.file2;;

as suggested @sigod , read http://dlang.org/module.html more information.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -