From owner-freebsd-questions@FreeBSD.ORG Wed Nov 12 19:33:33 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 157C516A4CE for ; Wed, 12 Nov 2003 19:33:33 -0800 (PST) Received: from swin.edu.au (c3p0.cc.swin.edu.au [136.186.1.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 674E243FD7 for ; Wed, 12 Nov 2003 19:33:31 -0800 (PST) (envelope-from pvandenbergen@swin.edu.au) Received: from pvdbergen.caia.swin.edu.au (pvdbergen.caia.swin.edu.au [136.186.229.26]) by swin.edu.au (8.9.3p2-20030918/8.9.3) with ESMTP id OAA624271 for ; Thu, 13 Nov 2003 14:33:29 +1100 (EST) From: paul van den bergen To: freebsd-questions@freebsd.org Date: Thu, 13 Nov 2003 14:33:29 +1100 User-Agent: KMail/1.5 References: <200311130137.hAD1bUg02673@gateway.home> <2721593A-1582-11D8-BB00-0030656DD690@foolishgames.com> <20031113032401.GA34467@keyslapper.org> In-Reply-To: <20031113032401.GA34467@keyslapper.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200311131433.29538.pvandenbergen@swin.edu.au> Subject: Re: Newbie: The C / C++ Issue X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2003 03:33:33 -0000 On Thu, 13 Nov 2003 02:24 pm, Louis LeBlanc wrote: > On 11/12/03 09:36 PM, Lucas Holt sat at the `puter and typed: > > On Nov 12, 2003, at 8:37 PM, Marty Leisner wrote: > > > BTW -- I've been doing "object oriented" stuff in C for years -- > > > its harder, but its doable. You have a much simpler language to > > > deal with. > > > marty > > > > 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 :) don't confuse the language with the philosophy... programming styles - OO, procedural, functional, whatever, are methods or even rulesets. some languages suit one or the other better or worse. One could write functionally in C++ if one had to... but *ouch* ditto C wrt OO. the thing is that modular C programming is scalable in ways similar to OO. that's sort of part way to OO. the rest of it - inheretance, etc. when automated in C++ v's C make C++ more suitable to OO programming. IMHO, ofcourse. -- Dr Paul van den Bergen Centre for Advanced Internet Architectures caia.swin.edu.au pvandenbergen@swin.edu.au IM:bulwynkl2002 "And some run up hill and down dale, knapping the chucky stones to pieces wi' hammers, like so many road makers run daft. They say it is to see how the world was made." Sir Walter Scott, St. Ronan's Well 1824