Date: Wed, 24 Nov 2004 10:41:24 -0800 From: John-Mark Gurney <gurney_j@resnet.uoregon.edu> To: Chuck Swiger <cswiger@mac.com> Cc: "Wilkinson, Alex" <alex.wilkinson@dsto.defence.gov.au> Subject: Re: Transparent bridges (a. k. a. HUB-to-PCI bridges)? Message-ID: <20041124184124.GA5166@funkthat.com> In-Reply-To: <41A416E7.4030107@mac.com> References: <200411231226.38172.jkim@niksun.com> <200411231343.22760.jhb@FreeBSD.org> <20041124002603.GD20881@squash.dsto.defence.gov.au> <41A416E7.4030107@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Chuck Swiger wrote this message on Wed, Nov 24, 2004 at 00:06 -0500: > Wilkinson, Alex wrote: > >2. OOPish device object (device_t) ? > > True OOP involves encapsulation, polymorphism, and inheritence, and > requires language support which is not really available in pure C. That > being said, careful programming in C lets you create several > closely-related structs for different types of "objects" which can all be > utilized by a common set of functions. You should read up on KOBJ's which is how device_t's are implemented in FreeBSD... kobj's are a loop more OOP that you think... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041124184124.GA5166>