On Friday, 22 July 2016 at 10:47:33 UTC, Bauss wrote:
On Wednesday, 20 July 2016 at 07:50:13 UTC, Timothee Cour wrote:
typo:
s/dmd -c -o- -deps A.d/dmd -c -o- -deps B.d

On Wed, Jul 20, 2016 at 12:45 AM, Timothee Cour <thelastmamm...@gmail.com> wrote:

[...]

I believe private import is already reserved. It's being used 618 places inside of official D code.

See: https://github.com/search?q=org%3Adlang+private+import&type=Code

it's legit in several tests that verify the protection attributes but otherwise it's approximatively 600 times useless ;) since import are private by default.

But therorically you're right, it already has a specific semantic. And it's probably perfectly legit in some cases, like here:

    public:
       declA;
       declB;
       private import stuff;
       declX;

where it's used to temprarily override the protection attribute of the scope.

Reply via email to