How to break module into multiple file.

Adam Ruppe destructionator at gmail.com
Thu May 12 06:38:45 PDT 2011


Use folders as a collection of modules.

foo/bar.d => import foo.bar;

You don't actually have to separate them into folders - the directory
layout is up to you. But this is the simplest method.

Learn more here:

http://digitalmars.com/d/2.0/module.html


More information about the Digitalmars-d-learn mailing list