output minimal .di files?

Timon Gehr timon.gehr at gmx.ch
Mon Jan 16 15:17:18 PST 2012


On 01/16/2012 09:40 PM, H. S. Teoh wrote:
> On Mon, Jan 16, 2012 at 09:32:57PM +0100, Alex Rønne Petersen wrote:
> [...]
>> I... don't think the error messages from expanding raw object code
>> would be very pleasant to read, if you used a template incorrectly...
> [...]
>
> It doesn't have to be *executable* object code; the compiler may store
> extra info (perhaps as debugging data?) so that it can generate nicer
> error messages.
>
> But like I said, this assumes the compiler is allowed to store arbitrary
> data inside object files, which may not be the case on some platforms.
>
>
> T
>

How would your proposal help hiding implementation details of templates 
anyway? All information still needs to be stored. Anyone could write a 
object file -> source file compiler for template implementations.


More information about the Digitalmars-d-learn mailing list