import/modules

BCS none at anon.com
Sat Jun 26 09:11:41 PDT 2010


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><





More information about the Digitalmars-d-learn mailing list