Re: Enumerations in fortran 2003
- From: "James Giles" <jamesgiles@xxxxxxxxxxxxxxxx>
- Date: Wed, 28 Sep 2005 04:48:49 GMT
glen herrmannsfeldt wrote:
> Richard Maine wrote:
>
>> In article <f_2dncw9Fo8TZqTeRVn-tw@xxxxxxxxxxx>,
>> glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx> wrote:
>
>>> Does C interop pass variables by value to C functions?
>
>> It does whatever is specified by the interface. There isn't a "do
>> every variable the same way" rule. In fact, there isn't a separate
>> C interop rule for variables at all; that's not one of the
>> determinants.
>
> Next question, then, is can Fortran pass an enumeration constant
> by reference?
Just like it passes a constant or expression of any other type
by reference: it makes a temporary of the type and KIND
appropriate, copies the value of the constant or expression
into that temporary, and passes a reference to that temporary.
--
J. Giles
"I conclude that there are two ways of constructing a software
design: One way is to make it so simple that there are obviously
no deficiencies and the other way is to make it so complicated
that there are no obvious deficiencies." -- C. A. R. Hoare
.
- Follow-Ups:
- Re: Enumerations in fortran 2003
- From: glen herrmannsfeldt
- Re: Enumerations in fortran 2003
- References:
- Enumerations in fortran 2003
- From: gaurav
- Re: Enumerations in fortran 2003
- From: gaurav
- Re: Enumerations in fortran 2003
- From: Richard Maine
- Re: Enumerations in fortran 2003
- From: gaurav
- Re: Enumerations in fortran 2003
- From: Richard Maine
- Re: Enumerations in fortran 2003
- From: Steven G. Kargl
- Re: Enumerations in fortran 2003
- From: gaurav
- Re: Enumerations in fortran 2003
- From: Richard Maine
- Re: Enumerations in fortran 2003
- From: James Giles
- Re: Enumerations in fortran 2003
- From: Richard Maine
- Re: Enumerations in fortran 2003
- From: Dick Hendrickson
- Re: Enumerations in fortran 2003
- From: Richard E Maine
- Re: Enumerations in fortran 2003
- From: robert . corbett
- Re: Enumerations in fortran 2003
- From: Richard Maine
- Re: Enumerations in fortran 2003
- From: robert . corbett
- Re: Enumerations in fortran 2003
- From: glen herrmannsfeldt
- Re: Enumerations in fortran 2003
- From: Richard Maine
- Re: Enumerations in fortran 2003
- From: glen herrmannsfeldt
- Enumerations in fortran 2003
- Prev by Date: Re: Enumerations in fortran 2003
- Next by Date: Re: Enumerations in fortran 2003
- Previous by thread: Re: Enumerations in fortran 2003
- Next by thread: Re: Enumerations in fortran 2003
- Index(es):
Relevant Pages
|