Thank you for helping me understand.
Well, yes and no. GivenI am under the impression that passing a pointer to a static function (ie,
passing a pointer to a memory address that contains the starting point of a
function) is not the same as defining a method that can be called by name
from C code. I am not a C expert though.
You still have no function pointer to it. That is however easy to procure:
extern( C ) returnType myFunc( /* args */ ) {}
someCfunctionThatExpectsAfnPointer( &myFunc );
It could be that there is some hidden detail of C static functions that I
don't know, but i believe this works.http://dsource.org/projects/scid uses LAPACK, so I guess it is possible.
Can one call fortran libraries from D? Ie, say one wanted to use LAPACK
from D?
At least some of this has been mentioned time and time again on the
Also, know of any mathematical libraries written in D (like implementations
of runge-kutta, linear algebra routines and data structures, optimization or
curve-fitting algorithms)?
newsgroup, you should be able to find it by searching.
>From dsource.org/projects:
http://dsource.org/projects/scid
http://dsource.org/projects/dstats
--
Simen