From owner-freebsd-questions Tue Aug 15 10:47:26 2000 Delivered-To: freebsd-questions@freebsd.org Received: from q.closedsrc.org (ip233.gte15.rb1.bel.nwlink.com [209.20.244.233]) by hub.freebsd.org (Postfix) with ESMTP id EC55237B83C for ; Tue, 15 Aug 2000 10:46:59 -0700 (PDT) (envelope-from lplist@closedsrc.org) Received: from localhost (lplist@localhost) by q.closedsrc.org (8.11.0/8.11.0) with ESMTP id e7FHj2P83522; Tue, 15 Aug 2000 10:45:02 -0700 (PDT) (envelope-from lplist@closedsrc.org) Date: Tue, 15 Aug 2000 10:45:02 -0700 (PDT) From: Linh Pham To: t g Cc: questions@FreeBSD.ORG Subject: Re: why c? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 15 Aug 2000, t g mumbled: > i've been trying to learn unix off and on for a while now, and i finally > trashed windoze ;-) now i'm running freebsd 4.0-release (only... no more > windows at all!). > > anyway, when i was in college (not to long ago) i took a number of > programming classes and all but one of them used c++. so, my question is, > why is everything written in c? is it simply because unix was written > before c++, or is c better for an os? > > i'm also interested in a good book on programming operating system if anyone > has a recommendation (doesn't have to be geared toward unix). > > thanks. The main issue with C++ is that it's convuluted and filled with mayhem :) A lot of programs are done in C mostly because it is more cross-platform friendly than many programming languages. Meaning that you can easily port a program written in C to run on UNIX, DOS, Windows, etc. Try doing that with BASIC :) // Linh Pham // http://closedsrc.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message