<div dir="ltr"><div><div><div>So the general idea would be to add:<br><br>mixin("import "~ mod ~";");<br><br></div>into the check() inner function but mod needs to come from somewhere.<br><br></div>I haven't been able to make it as a template yet.<br>
</div>A template should get evaluated in the calling context.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 4, 2013 at 10:44 AM, Rory McGuire <span dir="ltr"><<a href="mailto:rjmcguire@gmail.com" target="_blank">rjmcguire@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 dir="ltr"><div>yes, it does seem to break if the Implements template func is in a different module to the free standing func.<br>
<br></div>hmph, how to get around that.<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Sep 4, 2013 at 9:04 AM, Tobias Pankrath <span dir="ltr"><<a href="mailto:tobias@pankrath.net" target="_blank">tobias@pankrath.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>On Wednesday, 4 September 2013 at 00:56:55 UTC, Rory McGuire wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I was wondering if its possible to do interfaces the way #golang does it<br>
but in #dlang.<br>
<br>
Here is my first try: <a href="https://gist.github.com/rjmcguire/6431542" target="_blank">https://gist.github.com/<u></u>rjmcguire/6431542</a>.<br>
 Any help on making this smaller would be awesome.<br>
<br>
Cheers,<br>
R<br>
</blockquote>
<br></div>
Will this break, if I implement the free standing functions in a different module that is not in scope of the Implements! template?<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>