lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, Feb 26, 2014 at 3:39 PM, Javier Guerra Giraldez
<javier@guerrag.com> wrote:
> wowowow, i never said that!
>
> one, Lua does have objects... every value is an object, be it OOP or not.


My apologies. I was lazy in a way that was material, which means I was wrong.

> two, these OOP implementations aren't "fake" in any way, they're just
> as real as those on C++, or JavaScript.  just because it's not
> pre-built, it's nothing 'lesser', or second-class!

I agree with this. Back in the olden days, people would argue about
whether or not C++ was "truly object-oriented" or not. I was using the
word "fake" in this context. You can get what you need done, even when
you might choose a route that doesn't give you "true" data privacy,
for example. Or you can go all of the way and build up an OOP system
that meets your arbitrary definition of "true"...

Instead of "fake OOP", one might say that you can "ape" any OOP style
that you might care to emulate.


-Andrew