[Shootout-list] Re: OO (was Re: process creation & message passing)

Aaron Denney wnoise@ofb.net
Thu, 21 Oct 2004 20:45:23 +0000 (UTC)


On 2004-10-21, Isaac Gouy <igouy2@yahoo.com> wrote:
>> I'd like the shootout to be able to help someone show 
>> his boss "Hey, C++ is way better than our crufty C OO
>> library because it's half the LOC to maintain, or it's
>> only 0.5% slower on these types of problems, so let's
>> use it".
>
> Here's an Oberon-2 implementation of objinst
> It doesn't create any objects and it doesn't send any messages.
> It's just 1970's Pascal records (gcc structs) and procedure calls.
>
> It's shorter than the OO version, and probably faster.

Most importantly it doesn't do any dynamic dispatch.  Thus it's not OO.

-- 
Aaron Denney
-><-