Request for Review: DI Generation Improvements

Alex Rønne Petersen alex at lycus.org
Wed May 16 07:14:32 PDT 2012


On 16-05-2012 14:46, Steven Schveighoffer wrote:
> On Tue, 15 May 2012 05:51:44 -0400, kenji hara <k.hara.pg at gmail.com> wrote:
>
>> Old days import/core/thread.di was generated from src/core/thread.d .
>> Current import/core/thread.di is generated from src/core/thread.*di* .
>
> Huh? Why the copy? Just move src/core/thread.di to import/core/thread.di
>
> object.di lives in import/core, I think it should be the same for all
> the hand-maintained .di files.

Good point. I wonder why we didn't do that initially.

>
> FWIW, I thought thread.di was being generated because of this.
>
> Also, I agree that thread and object are the only modules that need to
> be .di files. Everything else is already opaque for the most part, and
> the pieces that aren't are just supporting code that can be visible.
>
> What we need to protect is the runtime implementation, so projects
> cannot depend on private APIs that may change.
>
> -Steve

-- 
Alex Rønne Petersen
alex at lycus.org
http://lycus.org


More information about the Digitalmars-d mailing list