Proposal for Deimos documentation

Jens Mueller jens.k.mueller at gmx.de
Fri Mar 22 07:47:48 PDT 2013


Jacob Carlborg wrote:
> On 2013-03-22 11:53, Jens Mueller wrote:
> 
> >True. But shouldn't you fix those things as follows:
> >
> >module deimos.a;
> >int a;
> >
> >(BTW Probably we should add shared here?)
> 
> __gshared.

Yes. I should add a section about globals.

> >module deimos.b;
> >public import deimos.a; // shouldn't this fix the problem
> >
> >Does this work?
> >Should I add text about when to use public imports?
> 
> It would work but I think this is bad practice. I would hate that to
> happened with every C binding. I love that D imports are _not_
> public.

Do you want a strict decision here? Because we have two options for
those cases a) add more than one import and b) make some imports public.
I'm leaning towards b.

Jens


More information about the Digitalmars-d mailing list