Importing a module from another directory

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Dec 27 11:31:04 PST 2014


On Sat, 27 Dec 2014 17:38:55 +0000
"Adam D. Ruppe via Digitalmars-d-learn"
<digitalmars-d-learn at puremagic.com> wrote:

> On Saturday, 27 December 2014 at 17:36:39 UTC, Derix wrote:
> > What am I missing ? Or, to put it more simply, what would be the
> > correct dmd command line to import a module defined in a sibling
> > directory ?
> 
> I don't know about the IDE, but the command line is easy: all 
> your projects modules can be listed on it and it will work.
> 
> dmd yourfile.d journal/journal.d
> 
> 
> giving them all at once means the necessary code will always be 
> found, compiled, and linked in. It is also generally faster than 
> trying to compile files separately, and easier too - an all 
> around win.

and not always working too. ;-) there is at least one bug with template
function attributes inferencing, but as i found no volunteers to narrow
it down and i'm using only separate compilation, it will wait for
another reporter. ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20141227/5fb0d2a8/attachment.sig>


More information about the Digitalmars-d-learn mailing list