Perl has a method to call functions from C code or libraries directly in Perl code, called XS. This works via a macro language that wraps around C and DTRT. Has anyone done something like this with D in Perl before? Failing that, is there prior art of calling D code from C?