Is there any prior art of calling D functions in Perl?

Iain Buclaw ibuclaw at ubuntu.com
Tue Nov 5 16:38:29 PST 2013


On 5 November 2013 14:41, Christian Walde <walde.christian at gmail.com> wrote:

> to get the ABI right, just use extern(C) on the relevant D functions.
>>
>
> Wow, ok, that was well hidden. I'd strongly suggest that block in
> http://dlang.org/interfaceToC.html get its own heading.
>
>
>  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.
>>
>
> Yeah, that was what i suspected, but hoped to avoid by reusing someone
> else's efforts. :)
>

I made a small start some time ago for a proof of concept package (in a
little over 150 lines of code).

http://iainbuclaw.wordpress.com/2010/06/22/d-perlembed

-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20131106/fafc6a36/attachment-0001.html>


More information about the Digitalmars-d mailing list