Re: import statement placement

2017-06-08 Thread Russel Winder via Digitalmars-d-learn
On Wed, 2017-06-07 at 10:08 -0700, H. S. Teoh via Digitalmars-d-learn wrote: > On Wed, Jun 07, 2017 at 01:17:39PM +, Nicholas Wilson via > Digitalmars-d-learn wrote: > > On Wednesday, 7 June 2017 at 12:39:07 UTC, Russel Winder wrote: > > > Are there any idiom rules as to where to put import

Re: import statement placement

2017-06-07 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Jun 07, 2017 at 01:17:39PM +, Nicholas Wilson via Digitalmars-d-learn wrote: > On Wednesday, 7 June 2017 at 12:39:07 UTC, Russel Winder wrote: > > Are there any idiom rules as to where to put import statements in D? > > > > In Python they can go anywhere but PEP-8 suggests they

Re: import statement placement

2017-06-07 Thread Nicholas Wilson via Digitalmars-d-learn
On Wednesday, 7 June 2017 at 12:39:07 UTC, Russel Winder wrote: Are there any idiom rules as to where to put import statements in D? In Python they can go anywhere but PEP-8 suggests they should all go at the top of a file, just after the module documentation string. Well for ones that

Re: import statement placement

2017-06-07 Thread Biotronic via Digitalmars-d-learn
On Wednesday, 7 June 2017 at 12:39:07 UTC, Russel Winder wrote: Are there any idiom rules as to where to put import statements in D? In Python they can go anywhere but PEP-8 suggests they should all go at the top of a file, just after the module documentation string. I don't know if there

import statement placement

2017-06-07 Thread Russel Winder via Digitalmars-d-learn
Are there any idiom rules as to where to put import statements in D? In Python they can go anywhere but PEP-8 suggests they should all go at the top of a file, just after the module documentation string. -- Russel. = Dr