Re: Any suggested workarounds for writing wrappers for functions that are to be passed as arguments?



On 2 sep, 16:27, Steve Lionel <Steve.Lio...@xxxxxxxxxxxxx> wrote:
On Tue, 2 Sep 2008 04:53:56 -0700 (PDT), Arjen Markus





<arjen.mar...@xxxxxxxxxx> wrote:
real function integrate_abc( f, n, pg, reltol )
   ... appropriate declarations

   ... preparation
   call integabc( flocal, ... )
   ... completion
   return

!
! Here it comes
!
entry flocal( pg )

  flocal = f(pg)

end function

This is illegal - when entered through flocal, dummy argument f is not allowed
to be referenced since it is not in the dummy argument list of flocal.
--
Steve Lionel
Developer Products Division
Intel Corporation
Nashua, NH

For email address, replace "invalid" with "com"

User communities for Intel Software Development Products
 http://softwareforums.intel.com/
Intel Fortran Support
 http://support.intel.com/support/performancetools/fortran
My Fortran blog
 http://www.intel.com/software/drfortran- Tekst uit oorspronkelijk bericht niet weergeven -

- Tekst uit oorspronkelijk bericht weergeven -

Ah, I had hoped it would sort-of-magically be available.

I have seen ENTRY used in one or two programs, I may have
used in one of my own programs a long time ago.

So I completely misjudged it ;).

Regards,

Arjen
.



Relevant Pages

  • Re: I cant run this tcl example! What is wrong with it?
    ...     while executing ... package require Itk, it reports that this ... Ahmad- Tekst uit oorspronkelijk bericht niet weergeven - ...
    (comp.lang.tcl)
  • Re: Colours not changing
    ... Public Sub Tester() ... Norman- Tekst uit oorspronkelijk bericht niet weergeven - ...
    (microsoft.public.excel.programming)
  • Re: Problem with exponentiation: -2**2 gives 4 instead of -4
    ... are not the views of Doulos Ltd., ...     set x -2 ... Arjen- Tekst uit oorspronkelijk bericht niet weergeven - ...
    (comp.lang.tcl)
  • Re: Arrays Intersection
    ...     I have received so many nice answers in this newsgroup that I ... intersection of 2 one-dimensional integer arrays, ... Tekst uit oorspronkelijk bericht weergeven - ...
    (comp.lang.fortran)
  • Re: a repost of my Brokeback Obama rant.
    ... Obama is going to do what the KKK could never do. ...     How's the economy doing after 8 years of Bush, ... neglected during 8 years of Republican rule, dummy. ... Washington national's bullpen and your ass, moron. ...
    (rec.music.artists.kiss)