Re: Pointers to functions: Is this the right [f03] syntax?
- From: nospam@xxxxxxxxxxxxx (Richard E Maine)
- Date: Tue, 20 Jun 2006 11:44:39 -0700
Pere <constans@xxxxxxxxxxxxx> wrote:
I am testing the f03 pointer to procedure functionality on the g95....
compiler. This feature works smooth for subroutine procedures, but the
compiler seems 'confused' when pointees are functions. It issues the
error "Unexpected array reference".
So, the question is, is this the right syntax for pointer to functions?[code elided]
Looks ok to me off-hand. Not that I've had the opportunity to try this
stuff on a compiler yet, but from F2003:
R1217 function-reference is procedure-designator (
[actual-arg-spec-list])
R1219 procedure-designator is procedure-name
or (some other options)
c1223(R1219) A procedure-name shall be the name of a procedure or
procedure pointer.
Which is to say that a function reference using a procedure pointer
looks just like one using the procedure name directly. This is analagous
to data pointers; the pointer is automatically dereeferenced.
--
Richard Maine | Good judgment comes from experience;
email: my first.last at org.domain| experience comes from bad judgment.
org: nasa, domain: gov | -- Mark Twain
.
- Follow-Ups:
- Re: Pointers to functions: Is this the right [f03] syntax?
- From: Andy
- Re: Pointers to functions: Is this the right [f03] syntax?
- From: glen herrmannsfeldt
- Re: Pointers to functions: Is this the right [f03] syntax?
- From: Joost
- Re: Pointers to functions: Is this the right [f03] syntax?
- References:
- Prev by Date: Re: Algorithm help for unique string searching/counting within an array.
- Next by Date: Re: Pointers to functions: Is this the right [f03] syntax?
- Previous by thread: Pointers to functions: Is this the right [f03] syntax?
- Next by thread: Re: Pointers to functions: Is this the right [f03] syntax?
- Index(es):
Relevant Pages
|