Re: A question about OOP in Fortran?



On Jun 30, 9:51 am, li.sim...@xxxxxxxxx wrote:
Any other suggestion??

To use another language is the ONLY other suggestion,
after you state that Fortran (not being OO) does not
implement what C++ does...if anything, we can narrow
it down a bit:

The May/June 2007 issue of Computing in
Science & Engineering was all about Python and how good
is even for scientific computing. In Python you can
program in a "procedural or fully object-oriented
fashion" as you see fits. Additionally, there is a
utility f2py that converts your Fortran programs into
Python-callable functions. So, you implement your
objects in Python (in true OO fashion) and implement
your number crunching part in Fortran.

gsal

.



Relevant Pages

  • Re: calling a function that returns a c_char from python
    ... compiler used, the output in python is right or wrong. ... The problem could lie either on the python side or the Fortran side. ... character arguments was defined in f77. ...
    (comp.lang.fortran)
  • Re: New to Python: Features
    ... > compile-time checking of procedure calls) were fixed in Fortran 90. ... alternative language possibilities for my employer of the time, ... By directly attacking pyrex as "not mature", ... > language like Python is good old C. ...
    (comp.lang.python)
  • Re: Python for Fortran programmers
    ... proposition for Python in the Fortran community", ... compiled language such as Fortran or C++, but I would still prefer to ... greater number of programming errors that are typically detected by a ...
    (comp.lang.fortran)
  • Re: Fortran vs Python - Newbie Question
    ... I've been told that Both Fortran and Python are easy to read, ... creating number crunching apps over Fortran?? ... serious numerical computation these days is large-scale) without ...
    (comp.lang.python)
  • Re: Testing for presence of arguments
    ... > I am writing some code for a measurement application (would have used ... > depending on whether it is specified at all, an entire sequence of commands ... > simple if block if python had something like the fortran 95 present ...
    (comp.lang.python)