[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Recommendations on my upcoming Lua presentation?
- From: David Kastrup <dak@...>
- Date: Mon, 31 Jan 2011 22:14:25 +0100
Javier Guerra Giraldez <javier@guerrag.com> writes:
> On Mon, Jan 31, 2011 at 3:03 PM, Axel Kittenberger <axkibe@gmail.com> wrote:
>> "pseudo"-OOP
>
> there's nothing "pseudo" about OOP in Lua
Certainly less so than in C++. The term OOP comes from Smalltalk, and
the key feature is separate objects communicating through message
passing. Objects are distinguished by having their own control flow.
Lua has yield/resume. Ada has rendezvous. C++ has nothing. C++
aficionados paint member function calls/returns as message passing, but
that is nonsensical since the only way out of a function call is a
return, abandoning all control flow.
C++ has hijacked the term OOP and given it the meaning "whatever C++ can
currently do more or less".
--
David Kastrup