On Thu, 23 Dec 2010 05:26:57 -0800
Jonathan M Davis <jmdavisp...@gmx.com> wrote:

> On Thursday 23 December 2010 04:38:56 spir wrote:
> > Hello,
> > 
> > Say I have a project with the following tree structure:
> > 
> > [app]
> >     app.d
> >     util.d
> >     [test]
> >             test.d
> >     [data]
> >             data.d
> > 
> > Is there a way to import util & data from test?
> 
> Use the -I flag when compiling. Presumably, you'd do something like -I../ so 
> that 
> it would also search for files starting at the parent directory.
> 
> - Jonathan M Davis

Thank you, I'll try this solution. So, there is no syntax? (I tried "import 
..util;" and import "..data.data;" without any success ;-)

What about proposing that each _single_ leading dot moves up one dir? In my 
case, this would give "import .util;" and "import .data.data;". I find this 
simple, practical and very useful.


Denis
-- -- -- -- -- -- --
vit esse estrany ☣

spir.wikidot.com

Reply via email to