Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Function questions?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
glen herrmannsfeldt  
View profile  
 More options Aug 28 2012, 3:50 pm
Newsgroups: comp.lang.fortran
From: glen herrmannsfeldt <g...@ugcs.caltech.edu>
Date: Tue, 28 Aug 2012 19:50:03 +0000 (UTC)
Local: Tues, Aug 28 2012 3:50 pm
Subject: Re: Function questions?

Richard Maine <nos...@see.signature> wrote:

(snip)

>> Richard Maine <nos...@see.signature> wrote:
>> > It is also far too easy to make a simple typo by writing = instead of =>
>> > for the invocation of such a function. You end up with a statement that
>> > is legal, but code that doesn't work.

(then I wrote)

>> That problem never happens in C or Java.
> As long as we are into random irrelevancies, it probably also doesn't
> happen in Portugese. At least I have trouble imagining how it would (not
> that I know any Portugese). But my advice on Fortran programming doesn't
> apply to Portugese either.

Well, that it true.

But also C has a different way to indicate if you want the pointer
or the pointee. Also, a special operator to dereference a structure
pointer, as that happens often enough.

Java has Object reference variables instead of pointers, and
you can't do some things that you can with C pointers. Still,
without any operators, you get the value of the reference and
not the value of the object.

Now, for my actual question from the previous post, can you
pass the pointer value from a function as an actual argument
to a subroutine or another function? As you note, in many
contexts a pointer variable has the value (l-value or r-value)
of the pointee. But maybe not as an actual argument to a pointer
dummy argument.

-- glen


 
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.