Re: Simple import question

2014-10-16 Thread Rei Roldan via Digitalmars-d-learn
On Wednesday, 15 October 2014 at 16:11:22 UTC, Steven Schveighoffer wrote: *snip* You might of missed Adam's response up there: But the best way is to explicitly pass all the file names to the compiler: dmd yourfile.d file2.d folder/file3.d and so on... Doing that will serve you best in

Re: Simple import question

2014-10-16 Thread Sag Academy via Digitalmars-d-learn
On Thursday, 16 October 2014 at 10:59:29 UTC, Rei Roldan wrote: On Wednesday, 15 October 2014 at 16:11:22 UTC, Steven Schveighoffer wrote: *snip* You might of missed Adam's response up there: But the best way is to explicitly pass all the file names to the compiler: dmd yourfile.d

Re: Simple import question

2014-10-16 Thread Steven Schveighoffer via Digitalmars-d-learn
On 10/16/14 6:59 AM, Rei Roldan wrote: On Wednesday, 15 October 2014 at 16:11:22 UTC, Steven Schveighoffer wrote: *snip* You might of missed Adam's response up there: But the best way is to explicitly pass all the file names to the compiler: dmd yourfile.d file2.d folder/file3.d and so

Re: Simple import question

2014-10-15 Thread Rei Roldan via Digitalmars-d-learn
I don't see how passing all required files to the compiler could possible raise an issue with module discoverability. Unless I'm missing something? In regards to pains if folder|file names / package|module names don't match, imho, physical organization of files should never (ever) be of any

Re: Simple import question

2014-10-15 Thread Steven Schveighoffer via Digitalmars-d-learn
On 10/15/14 4:59 AM, Rei Roldan wrote: I don't see how passing all required files to the compiler could possible raise an issue with module discoverability. Unless I'm missing something? In regards to pains if folder|file names / package|module names don't match, imho, physical organization of

Re: Simple import question

2014-10-15 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, October 15, 2014 12:11:22 Steven Schveighoffer via Digitalmars-d- learn wrote: On 10/15/14 4:59 AM, Rei Roldan wrote: I don't see how passing all required files to the compiler could possible raise an issue with module discoverability. Unless I'm missing something? In regards

Simple import question

2014-10-09 Thread WhatMeWorry via Digitalmars-d-learn
Hope this question is not too simple minded but, In the TDPL it says: To import one module from another, specify the name of the module in an import declaration. The name must include the relative path computed from the directory where compilation takes place Ok, but how does one

Re: Simple import question

2014-10-09 Thread via Digitalmars-d-learn
It's the current working directory, i.e. the directory from where you run the compiler. IDEs usually use the root directory of the project as working directory.

Re: Simple import question

2014-10-09 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 9 October 2014 at 18:21:32 UTC, WhatMeWorry wrote: To import one module from another, specify the name of the module in an import declaration. The name must include the relative path computed from the directory where compilation takes place This is not true. It is a REALLY

Re: Simple import question

2014-10-09 Thread Steven Schveighoffer via Digitalmars-d-learn
On 10/9/14 3:30 PM, Adam D. Ruppe wrote: On Thursday, 9 October 2014 at 18:21:32 UTC, WhatMeWorry wrote: To import one module from another, specify the name of the module in an import declaration. The name must include the relative path computed from the directory where compilation takes place