From owner-freebsd-questions@FreeBSD.ORG Thu Nov 13 11:54:47 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7EAE616A4CF for ; Thu, 13 Nov 2003 11:54:47 -0800 (PST) Received: from mail-relay1.mirrorimage.net (mail-relay1.mirrorimage.net [209.58.140.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 98B9F43FDF for ; Thu, 13 Nov 2003 11:54:45 -0800 (PST) (envelope-from leblanc@mirrorimage.net) Received: from leblanc.mirrorimage.net (leblanc.mirrorimage.net [209.192.210.146]) by mail-relay1.mirrorimage.net (8.9.3/8.9.3) with ESMTP id OAA05861; Thu, 13 Nov 2003 14:54:19 -0500 Received: from leblanc.mirrorimage.net (localhost [127.0.0.1]) hADJsYMG072064; Thu, 13 Nov 2003 14:54:34 -0500 (EST) (envelope-from leblanc@leblanc.mirrorimage.net) Received: (from leblanc@localhost) by leblanc.mirrorimage.net (8.12.8p1/8.12.8/Submit) id hADJsYWF072063; Thu, 13 Nov 2003 14:54:34 -0500 (EST) Date: Thu, 13 Nov 2003 14:54:34 -0500 From: Louis LeBlanc To: Chris Pressey Message-ID: <20031113195433.GF71150@keyslapper.org> Mail-Followup-To: Chris Pressey , abowhill , freebsd-questions@freebsd.org References: <20031113190115.C2F7733C5B@mail.blarg.net> <20031113114240.29717b03.cpressey@catseye.mine.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20031113114240.29717b03.cpressey@catseye.mine.nu> User-Agent: Mutt/1.5.4i cc: abowhill cc: freebsd-questions@freebsd.org Subject: Re: Newbie: The C / C++ Issue X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Louis LeBlanc List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2003 19:54:47 -0000 I hate to seem like a jerk, but I get these messages through the list already, and see no reason to get them in multiple boxes. Please feel free to continue this discussion on list, but please take this email out of the recipients list. I will join in when I am able. Granted that doesn't guarantee I'll agree with everyone, but then it wouldn't be much of a discussion, would it? :) Cheers. Lou On 11/13/03 11:42 AM, Chris Pressey sat at the `puter and typed: > On Thu, 13 Nov 2003 11:01:54 -0800 > "abowhill" wrote: > > > > Am I missing something here? When does C have OO capability? > > > Structs don't count. What about inheritance and polymorphism? > > > > >>That's in the implementation AND application. Just because you CAN > > >>access part of a lowly struct, doesn't mean you have to. It's > > >object>oriented if you OBSERVE the restricted accesses defined by OO. > > >>Whether or not they're there is completely irrelevant. Of course C > > >>has OO capability, it just doesn't have its restrictions :) > > > > The idea that C can be used to do object-oriented programming is > > a myth. The C language is not object-oriented or even object-based. > > The big reason C++ is object-oriented is due to dynamic binding. > > I don't think I buy that. With that reasoning, couldn't you say that > any program in any language that does any sort of dynamic binding (for > example, opening a .so file) "is object-oriented"? > > The way I see it is that object-orientation is a methodology, and > languages aren't methodologies, so it's absurd to say that some language > "is" or "isn't" object-oriented. (I mean, we all know that the Bourne > shell "is object-oriented,"[1] right? :) The best you can do is to > describe the degree to which some language supports or enforces > object-oriented programming. Incidental to that, C++ provides many > abstractions which support object-oriented programming, while not > enforcing them in any way. > > But this is getting far off topic for this list; the bare facts remain: > > - much of FreeBSD (kernel, userland) is written in C > - many FreeBSD ports are written in C++ > > So, as stated several times now, it really depends on what you want to > work on. > > -Chris > > [1] > http://www.usenix.org/publications/library/proceedings/bos94/haemer.html > > -- Louis LeBlanc leblanc@keyslapper.org Fully Funded Hobbyist, KeySlapper Extrordinaire :) http://www.keyslapper.org ԿԬ Satellite Safety Tip #14: If you see a bright streak in the sky coming at you, duck.