Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Fortran > Re: Problems in...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 16 of 17 Topic 8147 of 8908
Post > Topic >>

Re: Problems in passing a function to a subroutine

by nospam@[EMAIL PROTECTED] (Richard Maine) Apr 18, 2008 at 08:41 AM

Charles Coldwell <coldwell@[EMAIL PROTECTED]
> wrote:

> glen herrmannsfeldt <gah@[EMAIL PROTECTED]
> writes:

> > In a method related to the one Richard mentions, quad
> > could be written to accept a single variable, either a
> > C void pointer or unlimited polymorphic,
> > and pass this variable onto the called routine.
> 
> That would be called a "thunk" or "continuation" in other programming
> languages ....

Thanks for the terminology pointer. I've heard of thunks, but hadn't
quite figured out what they were about. This gives me at least a hint
(and I'll assume that it might be an approximation to the definition, so
I'll avoid taking it to strictly). So I've been using thinks without
knowing it? Ok.

Reminds me of the epiphiany I had on listening to John Cuthbertson's
talk on a proposal for object oriented features in Fortran about a
decade ago. Prior to that, I had heard lots about object orientation,
and several of its basic concepts, but the examples just didn't "click"
with me. They struck me as contrived and unrelated to anything I did in
Fortran. But John's talk put it in a context that I could relate to.

Suddenly, I realized that I had long been programming using some of
those concepts. I just hadn't abstracted them sufficiently to recognize
them as distinct identifiable concepts. They were just part of the way
that I organized and modularized some of my code. "So that's what
inheritance is about!" It also hadn't occurred to me that a compiler
could actually help instead of getting in the way. And once I saw the
formalism, it helped me see ways to improve my coding in that area, even
before the features were aded to the language. Sort of like fairly
abstract mathematics can sometimes (indeed often) help guide you in the
solution of more concrete problems.

-- 
Richard Maine                    | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle           |  -- Mark Twain
 




 17 Posts in Topic:
Problems in passing a function to a subroutine
deltaquattro <deltaqua  2008-04-17 03:00:56 
Re: Problems in passing a function to a subroutine
Arjen Markus <arjen.ma  2008-04-17 04:26:52 
Re: Problems in passing a function to a subroutine
deltaquattro <deltaqua  2008-04-17 04:55:53 
Re: Problems in passing a function to a subroutine
Arjen Markus <arjen.ma  2008-04-17 05:12:26 
Re: Problems in passing a function to a subroutine
Ron Shepard <ron-shepa  2008-04-17 11:53:52 
Re: Problems in passing a function to a subroutine
glen herrmannsfeldt <g  2008-04-17 10:31:11 
Re: Problems in passing a function to a subroutine
nospam@[EMAIL PROTECTED]   2008-04-17 12:07:48 
Re: Problems in passing a function to a subroutine
nospam@[EMAIL PROTECTED]   2008-04-17 12:31:54 
Re: Problems in passing a function to a subroutine
glen herrmannsfeldt <g  2008-04-17 12:02:53 
Re: Problems in passing a function to a subroutine
"jamesgiles@[EMAIL P  2008-04-17 12:50:54 
Re: Problems in passing a function to a subroutine
deltaquattro <deltaqua  2008-04-18 05:08:42 
Re: Problems in passing a function to a subroutine
nospam@[EMAIL PROTECTED]   2008-04-18 08:26:29 
Re: Problems in passing a function to a subroutine
deltaquattro <deltaqua  2008-04-18 07:01:08 
Re: Problems in passing a function to a subroutine
pa@[EMAIL PROTECTED] (Pi  2008-04-19 13:45:06 
Re: Problems in passing a function to a subroutine
Charles Coldwell <cold  2008-04-18 14:03:31 
Re: Problems in passing a function to a subroutine
nospam@[EMAIL PROTECTED]   2008-04-18 08:41:23 
Re: Problems in passing a function to a subroutine
glen herrmannsfeldt <g  2008-04-18 08:15:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Nov 19 8:28:08 CST 2008.