On Feb 2, 12:36 am, Ken <ken.al...@sbcglobal.net> wrote:
> I've seen sample code where a function name is passed as a argument toYes, one passes the address of the procedure. By contrast, with
> a function or subroutine and then declared as an external function.
> What is actually being passed? An address?
procedure pointers, you pass the address of the pointer variable,
which contains the address of the procedure. Example usage:
Here, "p" is the passed procedure, "proc_ptr" is a pointer variable,
Note that Equivalent to using
A better choise is to use:
The other line is equivalent to the following, but I think not all
The procedure statement - and procedure pointers - are Fortran 2003
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.