<div class="gmail_quote">On 30 January 2012 15:41, Manu <span dir="ltr"><<a href="mailto:turkeyman@gmail.com">turkeyman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><div class="gmail_quote">On 30 January 2012 15:30, Vladimir Panteleev <span dir="ltr"><<a href="mailto:vladimir@thecybershadow.net" target="_blank">vladimir@thecybershadow.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>On Monday, 30 January 2012 at 13:23:19 UTC, Manu wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is D capable of accessing the filesystem at compile time, for instance, to<br>
load and parse an XML DOM, or some other structural metadata, which may be<br>
used to generate the associative struct and its members?<br>
I can think of many other uses for the technology too. It seems extremely<br>
powerful, and I'm sure it's been discussed :)<br>
</blockquote>
<br></div></div>
That's what the import("filename") expression is for:<br>
<a href="http://dlang.org/expression.html#ImportExpression" target="_blank">http://dlang.org/expression.<u></u>html#ImportExpression</a><br>
<br>
You'll need to approve paths for inclusion with the -J switch.<br>
</blockquote></div><br></div></div><div>Magic! :)</div>
</blockquote></div><br><div>Here's another one I'm endlessly wishing I had in C.</div><div>I want to know if a library is present, and automatically disable non-vital features if it isn't.</div><div>It shits me to tears when I can't build something because a non-vital dependant lib is not available for a given platform or just not wanted.</div>