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

Re: What's the easiest and/or simplest part of Linux Kernel?



On Fri, Aug 30, 2013 at 10:48 AM, Jerry Stuckle <jstuckle@attglobal.net> wrote:
> On 8/29/2013 8:25 PM, Joel Rees wrote:
>>
>> [...]
> 3. Inheritance: the ability to extend an existing class, to provide
> additional or different functionality via additional messages in the derived
> class.  Inheritance takes advantage of the similarities in the base an
> derived classes.  The base class has no knowledge of the derived class and,
> in fact, may not even know it is being used as a base class.  Additional
> classes can be derived from the original base and derived classes with no
> change to the existing code.  This cannot be done in C.
>
> 4. Polymorphism: the ability to send messages to a derived class object when
> you believe you have an object of the base class.  This allows functions to
> operate on any class in the derived hierarchy, while only having to worry
> about the messages defined in the base class.  This also cannot be done in
> C.
>
> As I said - you can emulate Object Based programming in C, although it is
> messy.  You cannot create Object Oriented programs in C.

Okay, so, for you, supporting inheritance and polymorphism at run-time
rather than at compile time is not sufficiently OOP.

And I don't particularly care about that distinction.

I'm fine with ending the discussion there.

--
Joel Rees


Reply to: