Re: Enumerations in fortran 2003



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


.



Relevant Pages

  • Re: Why C#?
    ... Alvin Bruney ... say one language handles COM Interop better than the other. ... pass by reference, C# stumbles because these objects require a reference ... torture for C# developers building real world Office apps in .NET. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: giving interop a strong name
    ... Correct Nicholas, and Dave, if you want to learn more about using TLBIMP, ... SN, TLBEXP, and REGASM (the command line Interop tools), you can check out ... > create the interop assemblies yourself. ... > (depending on the reference you want to add). ...
    (microsoft.public.dotnet.languages.csharp)
  • Excel/Word interop for both Office 10 & 11
    ... I am working on an application that uses interop to do some simple operations ... with both Excel and Word. ... I have most of functionality working, ... single reference to Microsoft.Office.Core is added which is different than ...
    (microsoft.public.dotnet.general)
  • Re: Who uses clapack?
    ... >> I can't find the section in Bjarne Stroustrup's book where he discusses ... >> interoperability with other languages. ... it's hardly impressive that it can interop ... no deficiencies and the other way is to make it so complicated ...
    (sci.math.num-analysis)