From: Arjen M. <arj...@wl...> - 2006-05-15 09:54:06
|
Alan W. Irwin wrote: > > Noted, but not implemented yet. I would like to change this whole > area of > the API to use proper callbacks (where the API of the function or > subroutine > name being passed as an argument of the library routine is fully > specified). > Is this C-like approach available in fortran 95 (perhaps with the > interface > statement)? If so, then a number of different routines (e.g., plcon0, > plcon1, etc) could be replaced by one routine (plcont) in the fortran 95 > interface, and there will be no more need for the common block. The F95 bindings as I had them were incomplete at two points; - two-dimensional arrays like for plgriddata(), actually pointers to arrays - functions that take other functions as arguments The first can be solved at the C side. The second can be solved by appropriate explicit interfaces (so that the compiler can detect mismatches in the interfaces) and, if needed, a small C wrapper. That is something I want to realise the coming few days. Regards, Arjen |