Fortran and .NET (C#)
All:
Has anyone noticed the similarities between C# and Fortran 90, particularly
in aspects where Fortran 90 and C++ differ? I seem to remember Fortran 90
allowing arrays to be returned by functions. Was there "garbage collection"
in Fortran 90 or was there reference counting? Rather than C/C++ like
pointers, are pointers in Fortran 90 more similar to references and
reference types in C#?
.
Relevant Pages
- Re: Fortran and .NET (C#)
... Was there "garbage collection" in Fortran 90 or was there reference counting? ... For functions returning arrays that are either explicit-sized or allocatable, the language is designed such that you don't need either of those. ... And if one is a novice, well, one pretty much abandons all hope of a bug-free program if one uses functions that return pointers. ... Recall that, unlike C, Fortran doesn't force you into using pointers just because you have arrays. ... (comp.lang.fortran) - Re: Cracking DES with C++ is faster than Java?
... > C doesn't have multidimensional arrays, ... you must use pointers to pointers instead, ... properties from Fortran (efficient code, separate compilation, ... However C didn't borrow object orientation ... (comp.lang.java) - Re: Cracking DES with C++ is faster than Java?
... > C doesn't have multidimensional arrays, ... you must use pointers to pointers instead, ... properties from Fortran (efficient code, separate compilation, ... However C didn't borrow object orientation ... (comp.lang.cpp) - Re: Cracking DES with C++ is faster than Java?
... > C doesn't have multidimensional arrays, ... you must use pointers to pointers instead, ... properties from Fortran (efficient code, separate compilation, ... However C didn't borrow object orientation ... (sci.crypt) - Re: INTERFACE problem
... I have an integer at Fortran side, pass it by reference to C function, treat here as pointer, allocate memory and this C-pointer at Fortran side now is an integer which has represents address allocated at C side. ... I did something like this many years ago to allow dynamic allocation ... Then it was converted into a subroutine with the arrays and ... it called the sub by way of Pascal with those "pointers". ... (comp.lang.fortran) |
|