Linked by John Collins on Wed 21st Apr 2004 06:42 UTC
General Development The purpose of this article is to give a novice programmer the basic idea of what OOP is, as implemented using PHP. Readers should have a basic knowledge of programming ie what variables are, variable types, basic methods of writing comments, and how to enter code into a text editor.
Permalink for comment
To read all comments associated with this story, please click here.
RE: OOP with Fortran, any interest?
by OoSync on Thu 22nd Apr 2004 15:40 UTC

My main thought, to which I'm sure you'll agree, is that everything object-oriented presented in this tutorial is also available in modern Fortran. And yes, I do mean Fortran 90/95 when I say modern.

As far as if F95 is and OOP language, well, more or less it is. There are some excellent tutorials on this and even the book _Object-oriented Programming with Fortran 95_, which is pretty decent. What Fortran 95 cannot do is dynamic dispatch (i.e., part of what templates allow in C++) and inheritance. Both of these can be emulated to a degree if they are absolutely necessary. Of course, as you mention, the Fortran 2003 (official name) revision updates the language to a fully OOP language. If you wish to play with these things, the current Lahey compiler (version 9?, I'm not sure), already impliments many of the new features, including OOP features.

Hmm, on second thought, it may be pretty cool to write a pretty simple intro to OOP and F95, and then play with the Lahey compiler to flesh out an intro to OOP in F2003. That could be really fun.