<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 5 November 2013 14:41, Christian Walde <span dir="ltr"><<a href="mailto:walde.christian@gmail.com" target="_blank">walde.christian@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

to get the ABI right, just use extern(C) on the relevant D functions.<br>
</blockquote>
<br></div>
Wow, ok, that was well hidden. I'd strongly suggest that block in <a href="http://dlang.org/interfaceToC.html" target="_blank">http://dlang.org/interfaceToC.<u></u>html</a> get its own heading.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
however, if the perl interface needs to write wrapper functions based on C headers you will have to write a C header containing the relevant function declarations.<br>
</blockquote>
<br></div>
Yeah, that was what i suspected, but hoped to avoid by reusing someone else's efforts. :)<br>
</blockquote></div><br></div><div class="gmail_extra">I made a small start some time ago for a proof of concept package (in a little over 150 lines of code).<br><br><a href="http://iainbuclaw.wordpress.com/2010/06/22/d-perlembed">http://iainbuclaw.wordpress.com/2010/06/22/d-perlembed</a><br clear="all">
</div><div class="gmail_extra"><br>-- <br>Iain Buclaw<br><br>*(p < e ? p++ : p) = (c & 0x0f) + '0';
</div></div>