Proposed improvements to the separate compilation model

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Jul 23 16:12:44 PDT 2011


On 7/23/11 6:10 PM, Daniel Gibson wrote:
> Am 24.07.2011 01:02, schrieb so:
>> On Sun, 24 Jul 2011 01:47:32 +0300, Andrei Alexandrescu
>> <SeeWebsiteForEmail at erdani.org> wrote:
>>
>>> and then either remove the .tmp if identical or rename it forcefully
>>> to filename.di if different. That's a classic in code generation tools.
>>
>> Not sure i got it right but how renaming it forcefully would solve this?
>> This must be two separate process for the compiler, issuing an error and
>> if it was intended then the .di file must be generated.
>
> Because if not done forcefully there may be an error because filename.di
> already exists.

Exactly right.

Andrei


More information about the Digitalmars-d mailing list