I am interested in using the MatD and mex files in D. Also, if possible, to contribute.
Cool :)
For the time being, I see that you are distributing a set of win32 .lib with MatD. I tried to compile the mex examples you provided in Linux 64 bit, but dmd failed to link, I think it is because there is a 32 bit compiler (and the Matlab libmex.so librariest ec. are 64 bit).
Yeah, you need to create mex64 files for use with Matlab x64. That's why I haven't tested it on Win64 yet.
On the one hand, when compiling/linking against the libmex.lib and libmx.lib files that you provided, a (correct) .dll file (or a .mexw32 file) is generated, along with two other files called arrayProduct.map and arrayProduct.obj. This is just perfect, the .DLL works and is recognized by Matlab (win32 bit) as a MEX file.
As Rainer already pointed out optlink only supports omf import libraries. I created them using implib.
