Deutsch   English   Français   Italiano  
<865xnzlyyf.fsf@linuxsc.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch <tr.17687@z991.linuxsc.com>
Newsgroups: comp.lang.c
Subject: Re: logically weird loop
Date: Wed, 04 Dec 2024 17:07:20 -0800
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <865xnzlyyf.fsf@linuxsc.com>
References: <0e1c6d2e74d44a715bf7625ca2df022d169f878a@i2pn2.org> <vhl32r$66a2$1@dont-email.me> <vhlspv$ahc9$10@dont-email.me> <vhmilk$hd28$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Date: Thu, 05 Dec 2024 02:07:23 +0100 (CET)
Injection-Info: dont-email.me; posting-host="8a263e9b473304506e7d265d71d931f0";
	logging-data="1278201"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18xpw57yJdUNaOubalKKWf7JS2pfRo2Kaw="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:CjJd4Tj2pQ0ouyoU6Aak9GCGoRc=
	sha1:rfWZcV5RdH6spSorAIIKWO1v0Hg=
Bytes: 2681

Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:

> On 21.11.2024 00:53, Lawrence D'Oliveiro wrote:
>
>> On Wed, 20 Nov 2024 17:34:34 +0100, Janis Papanagnou wrote:
>>
>>> [*] A friend of mine just recently implemented the code frame for a
>>> roguelike and followed the suggestion of an event based object-oriented
>>> implementation;  it worked well, he told me.
>>
>> The next step would be to use coroutines so the logic of a longer-running
>> task, which has to wait for other events at multiple points, can be
>> written in a single linear stream without having to be fragmented into
>> multiple callbacks.
>
> Yes, indeed.
>
> Actually, if you know Simula, coroutines are inherent part of that
> language, and they based their yet more advanced process-oriented
> model on these.  I find it amazing what Simula provided (in 1967!)
> to support such things.  Object orientation[*], coroutines, etc.,
> all fit together, powerful, and in a neat syntactical form. - But
> "no one" is using Simula, and my friend was using C++; don't know
> what C++ supports in that respect today.  I know that he implemented
> the "simulation" parts (queuing, time-model, etc.) in C++ himself.
>
>
> [*] It was the language who invented Object Orientation [...]

No, it wasn't.  First, programming in a language with classes and
objects does not imply object-oriented programming.  Second, the
underlying ideas of object-oriented programming pre-date Simula 67
by five years or more.  That history has been pointed out by
Alan Kay, who is the originator of the term and is responsible
for pioneering the concept.