[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Colon notation in object-oriented programming
- From: Francisco Olarte <folarte@...>
- Date: Sun, 5 Mar 2017 19:02:27 +0100
On Sun, Mar 5, 2017 at 5:53 PM, Petri Häkkinen <petrih3@gmail.com> wrote:
> Also, I don't see how not using "self" would stop me from writing a modding API.
Nothing.
You can easily do OO programming in assembler, where your objects are
memory data blocks inside which there is a pointer to a jump table,
IIRC Linux kernel does this in C for several things and C++ translate
into a version of it. In fact things like C FILE* are clearly OO and
in some libs FILE* are even polymorphic.
But I doubt that is the point. I, personally, normally use OO style
when I find it easier or clearer.
Francisco Olarte.