Path: ...!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: The Natural Philosopher Newsgroups: alt.folklore.computers,comp.os.linux.misc Subject: Re: TeX and Pascal [was Re: The joy of FORTRAN] Date: Tue, 1 Oct 2024 13:43:31 +0100 Organization: A little, after lunch Lines: 29 Message-ID: References: <5mqdnZuGq4lgwm_7nZ2dnZfqnPSdnZ2d@earthlink.com> <1r0e6u9.1tubjrt1kapeluN%snipeco.2@gmail.com> <20240925083451.00003205@gmail.com> <20240930110933.00002ec1@gmail.com> <20240930135208.00004170@gmail.com> <20240930162717.0000340b@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 01 Oct 2024 14:43:31 +0200 (CEST) Injection-Info: dont-email.me; posting-host="dcb66500665ee9a2130a1ee3d87e7312"; logging-data="2868852"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+sZSWlMHJayRYM+V29ABGAaIXzKsL5L14=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:Eq0WGRPcD/JEcP/68hVzKYwvnU0= Content-Language: en-GB In-Reply-To: <20240930162717.0000340b@gmail.com> Bytes: 2888 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)