<div class="gmail_quote">On 30 January 2012 15:30, Vladimir Panteleev <span dir="ltr"><<a href="mailto:vladimir@thecybershadow.net">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 class="HOEnZb"><div class="h5">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>Magic! :)</div>