<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span>Right.  I would think the most important reason to use .di files is to hide private imports.  The GC is a good example, you don't want to import the GC implementation when importing core.memory.  But in fact, core.memory doesn't import anything from rt, it links to the GC implementation via extern(C) functions, so the implementation of core.memory is not a good example.<br></span></div><div><br><span></span></div><div><span>I think to a point, using .di files has merit.  To be certain, anything that imports anything from rt should be hidden (I'm not sure if there are any cases of that).  But we should consider the cost of disabling CTFE on druntime functions, especially those in core that really aren't managing the actual runtime of the compiler, but are just tools used by both druntime and phobos
 (core.time and core.math come to mind).</span></div><div><br><span></span></div><div><span>-Steve<br></span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><font face="Arial" size="2"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Walter Bright <walter@digitalmars.com><br><b><span style="font-weight: bold;">To:</span></b> d-runtime@puremagic.com<br><b><span style="font-weight: bold;">Sent:</span></b> Wednesday, July 13, 2011 6:41 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [D-runtime] Why does druntime us .di files instead of .d?<br></font><br><br><br>On 7/13/2011 3:19 PM, Jonathan M Davis wrote:<br>><br>> Given its heavy use of templates, I'm not sure how much that'll buy us
 in<br>> terms of compilation speed, and since it's all open source, I don't know why<br>> it would matter about hiding implementation details.<br><br>Consider the garbage collector. Should every compilation have to recompile that, <br>too?<br><br>_______________________________________________<br>D-runtime mailing list<br><a ymailto="mailto:D-runtime@puremagic.com" href="mailto:D-runtime@puremagic.com">D-runtime@puremagic.com</a><br><a href="http://lists.puremagic.com/mailman/listinfo/d-runtime" target="_blank">http://lists.puremagic.com/mailman/listinfo/d-runtime</a><br><br><br></div></div></blockquote></div></div></body></html>