Is package.d a good idea?
Nick Sabalausky (Abscissa)
SeeWebsiteToContactMe at semitwist.com
Tue Jul 3 07:15:51 UTC 2018
On 07/01/2018 10:23 AM, Yuxuan Shui wrote:
>
> I was suggesting we do what Rust did. i.e. 'import foo', imports foo.d,
> which can in turn do 'import foo.bar', which will import foo/bar.d.
AIUI, D doesn't support having *both* a module (ie, file 'foo.d') and a
package (ie, directory 'foo/') with the same name (ie, 'foo')...for some
goofy unknown reason. I agree that suggestion is how it should've been
from the start.
More information about the Digitalmars-d
mailing list