[Issue 357] New: D keywords in import/module are (unnecessary) forbidden

Derek Parnell derek at psyc.ward
Wed Sep 20 15:22:16 PDT 2006


On Wed, 20 Sep 2006 21:58:18 +0000 (UTC), d-bugmail at puremagic.com wrote:

> http://d.puremagic.com/issues/show_bug.cgi?id=357
> 
>            Summary: D keywords in import/module are (unnecessary) forbidden
>            Product: D
>            Version: 0.167
>           Platform: Other
>         OS/Version: Linux
>             Status: NEW
>           Severity: normal
>           Priority: P2
>          Component: DMD
>         AssignedTo: bugzilla at digitalmars.com
>         ReportedBy: aarti at interia.pl
> 
> It is a quite a big shortcoming: you can not have e.g. 'interface' directory in
> your project file structure.
> 
> D keyword should be allowed in import/module declarations as it (probably)
> don't make unnecessary ambiguities.

I think its there to help prevent things like ...

  import this;

  . . . 

    this.xyz;   // 'this' is a module reference ???


-- 
Derek Parnell
Melbourne, Australia
"Down with mediocrity!"



More information about the Digitalmars-d-bugs mailing list