www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - import/modules

reply marksibly <blitzmunter gmail.com> writes:
Hi,

next sibling parent bearophile <bearophileHUGS lycos.com> writes:
marksibly:
prev sibling parent BCS <none anon.com> writes:
Hello marksibly,

BTW, whatever client you are using is generating text that, for me, renders 
without spaces. I suspect a code page/UTF/whatever issue.

 Hi,
 
 Dnewbieherewithafewimport/modulerelatedquestions.
 
 Ihaveatestprojectwiththefollowingdir/filelayout:
 
 c:\test.d
 c:\testmod\test2.d
 Themodulesreferenceeachotherviaimports(very nice!)anditall
 compilesfineaslongasIspecifybothmodulesonthedmdcommand line,eg:
 
 c:\> dmdtest.dtestmod\test2.d
 
 ButIcan'tget'-I'todothisforme,eg:
 
 c:\> dmd-Ic:\test.d
 
 ...doesn'twork-can'tfindthesecondmodule.
 
 WhatamIdoingwrong?Oristhisjust thewayitworks? Ifso,what
 does-Iactuallydo?
 
 Ialsonoticethatyouseemtobeabletocallpackages/modules anythingyouwant!
 
 Thedocsstatethatpackagenames=dirsandmodulenames=files,but
 youcanapparentlyuseanythingyouwantforeither,aslongasthe
 moduledeclmatchestheimport.
 
 Not a biggy, but then what exactly are packages for?
 
 Bye!
 Mark
 ps:thesamplesinthewindowsreleasedon'twork-they'relooking
 foradmd/bindir,butthere'sonlydmd/windows.Triedcopying bin &
 libdirsinwindowsupalevelbutno luck.
 
-- ... <IXOYE><
Jun 26 2010