DIP16: Transparently substitute module with package
Robert Clipsham
robert at octarineparrot.com
Fri Mar 30 08:57:48 PDT 2012
On 30/03/2012 15:46, Andrei Alexandrescu wrote:
> Starting a new thread from one in announce:
>
> http://prowiki.org/wiki4d/wiki.cgi?LanguageDevel/DIPs/DIP16
>
> Please comment, after which Walter will approve. Walter's approval means
> that he would approve a pull request implementing DIP16 (subject to
> regular correctness checks).
>
>
> Destroy!
>
> Andrei
The proposal doesn't say what happens when package.d is not found but
foo/bar/ exists.
Given that a lot of people will just use public import foo.bar.*; in
that file, would it make sense for package.d missing to imply import
foo.bar.*? That would save typing out every single file in there. Of
course it would also be annoying if you wanted to import everything
except one file, as you'd then have to type out every single import anyway.
The other option is to error, which is probably a more sane option.
--
Robert
http://octarineparrot.com/
More information about the Digitalmars-d
mailing list