Re: import from subdir

2010-12-23 Thread Jonathan M Davis
On Thursday 23 December 2010 16:42:15 spir wrote: > On Thu, 23 Dec 2010 12:54:42 -0800 > > Jonathan M Davis wrote: > > What you're trying to do is pretty abnormal really, as far as your > > average module goes. I assume that you're writing a test app which needs > > access to the main body of cod

Re: import from subdir

2010-12-23 Thread spir
On Thu, 23 Dec 2010 12:54:42 -0800 Jonathan M Davis wrote: > What you're trying to do is pretty abnormal really, as far as your average > module goes. I assume that you're writing a test app which needs access to > the > main body of code and are trying to find a way to point it to that code

Re: import from subdir

2010-12-23 Thread Jonathan M Davis
On Thursday 23 December 2010 05:59:37 spir wrote: > On Thu, 23 Dec 2010 05:26:57 -0800 > > Jonathan M Davis 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 > > >

Re: import from subdir

2010-12-23 Thread Jonathan M Davis
On Thursday 23 December 2010 11:30:40 CrypticMetaphor wrote: > On 12/23/2010 1:38 PM, spir wrote: > > Is there a way to import util& data from test? > > I think this should work: > > util.d first line: > module util; > > data.d first line > module data.data; > > test.d first lines

Re: import from subdir

2010-12-23 Thread CrypticMetaphor
On 12/23/2010 1:38 PM, spir wrote: Is there a way to import util& data from test? I think this should work: util.d first line: module util; data.d first line module data.data; test.d first lines module test.test; import util; import data.data; Discl

Re: import from subdir

2010-12-23 Thread spir
On Thu, 23 Dec 2010 05:26:57 -0800 Jonathan M Davis 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] > >

Re: import from subdir

2010-12-23 Thread Jonathan M Davis
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 -