Re: TeX and Pascal [was Re: The joy of FORTRAN]

Liste des GroupesRevenir à col misc 
Sujet : Re: TeX and Pascal [was Re: The joy of FORTRAN]
De : tnp (at) *nospam* invalid.invalid (The Natural Philosopher)
Groupes : alt.folklore.computers comp.os.linux.misc
Date : 01. Oct 2024, 13:43:31
Autres entêtes
Organisation : A little, after lunch
Message-ID : <vdgqpj$2nhjk$14@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
User-Agent : Mozilla Thunderbird
On 01/10/2024 00:27, John Ames wrote:
I think the
true appeal of OOP (as I see it) is that it's an extension of the
*concept*  of data structures; that is, it's a way of organizing data
into discrete structures that (when designed well, anyway) map neatly
to entities in the model of the problem the program is meant to solve.
But in addition to raw data, OOP allows the programmer to package the
*operations*  inherent to an entity right along with it - and to adapt
them to one particular flavor of entity or another, as needed, so that
rather than having to remember the distinction between:
Yes. That's what I took out of it. You packaged a data structure together with the ways to access it and operations that could be performed on it.
You can do that in straight C using one file per object and the static keyword.
All that C++ gives you is a syntactical way to describe what you are doing.
And frankly I find the syntax utterly confusing
--
If I had all the money I've spent on drink...
..I'd spend it on drink.
Sir Henry (at Rawlinson's End)

Date Sujet#  Auteur
12 Jul 25 o 

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal